mirror of https://git.ffmpeg.org/ffmpeg.git
lavc/mlpenc: remove the redundant condition check
remove the redundant condition check for 'frame' Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
This commit is contained in:
parent
f82a02aa89
commit
64e610b5f4
|
@ -2232,10 +2232,8 @@ static int mlp_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
/* add current frame to queue */
|
/* add current frame to queue */
|
||||||
if (frame) {
|
if ((ret = ff_af_queue_add(&ctx->afq, frame)) < 0)
|
||||||
if ((ret = ff_af_queue_add(&ctx->afq, frame)) < 0)
|
return ret;
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
data = frame->data[0];
|
data = frame->data[0];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue