]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/mlpenc.c
avcodec/v4l2_m2m: Cosmetics
[ffmpeg] / 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];