Commit 64e610b5 authored by Jun Zhao's avatar Jun Zhao

lavc/mlpenc: remove the redundant condition check

remove the redundant condition check for 'frame'
Signed-off-by: 's avatarJun Zhao <barryjzhao@tencent.com>
parent f82a02aa
......@@ -2232,10 +2232,8 @@ static int mlp_encode_frame(AVCodecContext *avctx, AVPacket *avpkt,
return 1;
/* add current frame to queue */
if (frame) {
if ((ret = ff_af_queue_add(&ctx->afq, frame)) < 0)
return ret;
}
if ((ret = ff_af_queue_add(&ctx->afq, frame)) < 0)
return ret;
data = frame->data[0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment