mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-16 04:32:47 +02:00
lavc: merge two if()s with the same condition.
This commit is contained in:
+1
-2
@@ -1112,10 +1112,9 @@ int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx,
|
||||
avpkt->size = 0;
|
||||
else if (!(avctx->codec->capabilities & CODEC_CAP_DELAY))
|
||||
avpkt->pts = avpkt->dts = frame->pts;
|
||||
}
|
||||
|
||||
if (!ret)
|
||||
avctx->frame_number++;
|
||||
}
|
||||
|
||||
emms_c();
|
||||
return ret;
|
||||
|
||||
Reference in New Issue
Block a user