]> git.sesse.net Git - ffmpeg/commitdiff
lavc/mlpenc: remove the redundant condition check
authorJun Zhao <barryjzhao@tencent.com>
Fri, 10 May 2019 13:24:17 +0000 (21:24 +0800)
committerJun Zhao <barryjzhao@tencent.com>
Sun, 12 May 2019 06:18:08 +0000 (14:18 +0800)
remove the redundant condition check for 'frame'

Signed-off-by: Jun Zhao <barryjzhao@tencent.com>
libavcodec/mlpenc.c

index 7536d3b2f50949836bd164854d2fae66aaec1257..deb171645ccc517e5089341bc6cd9c50adc2128e 100644 (file)
@@ -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];