]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/v4l2_m2m_enc: reindent after previous commit
authorAndriy Gelman <andriy.gelman@gmail.com>
Sun, 23 Aug 2020 17:34:01 +0000 (13:34 -0400)
committerAndriy Gelman <andriy.gelman@gmail.com>
Sun, 23 Aug 2020 17:42:07 +0000 (13:42 -0400)
Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
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);