]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/v4l2_m2m_enc.c
avformat: Remove deprecated av_demuxer_open()
[ffmpeg] / libavcodec / v4l2_m2m_enc.c
index 4230a415fd9c301806f92e92502789d8cb11abb9..f644b50133b436e632cd915971e3d9a4dae58ee7 100644 (file)
@@ -296,12 +296,12 @@ static int v4l2_receive_packet(AVCodecContext *avctx, AVPacket *avpkt)
         goto dequeue;
 
     if (!frame->buf[0]) {
-    ret = ff_encode_get_frame(avctx, frame);
-    if (ret < 0 && ret != AVERROR_EOF)
-        return ret;
+        ret = ff_encode_get_frame(avctx, frame);
+        if (ret < 0 && ret != AVERROR_EOF)
+            return ret;
 
-    if (ret == AVERROR_EOF)
-        frame = NULL;
+        if (ret == AVERROR_EOF)
+            frame = NULL;
     }
 
     ret = v4l2_send_frame(avctx, frame);