mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-27 13:10:37 +00:00
lavc: merge two if()s with the same condition.
This commit is contained in:
parent
d55fa6f9cb
commit
03ca0a5b30
@ -1112,10 +1112,9 @@ int attribute_align_arg avcodec_encode_video2(AVCodecContext *avctx,
|
|||||||
avpkt->size = 0;
|
avpkt->size = 0;
|
||||||
else if (!(avctx->codec->capabilities & CODEC_CAP_DELAY))
|
else if (!(avctx->codec->capabilities & CODEC_CAP_DELAY))
|
||||||
avpkt->pts = avpkt->dts = frame->pts;
|
avpkt->pts = avpkt->dts = frame->pts;
|
||||||
}
|
|
||||||
|
|
||||||
if (!ret)
|
|
||||||
avctx->frame_number++;
|
avctx->frame_number++;
|
||||||
|
}
|
||||||
|
|
||||||
emms_c();
|
emms_c();
|
||||||
return ret;
|
return ret;
|
||||||
|
Loading…
Reference in New Issue
Block a user