diff mbox series

[FFmpeg-devel,3/3] avcodec/v4l2_m2m_enc: reindent after previous commit

Message ID 20200717020918.385084-3-andriy.gelman@gmail.com
State Accepted
Commit 58b8541330aa088d02df82962589357b6e5f8f28
Headers show
Series [FFmpeg-devel,1/3] avcodec/v4l2_context: return EAGAIN to signal full buffers
Related show

Checks

Context Check Description
andriy/default pending
andriy/make success Make finished
andriy/make_fate success Make fate finished

Commit Message

Andriy Gelman July 17, 2020, 2:09 a.m. UTC
From: Andriy Gelman <andriy.gelman@gmail.com>

Signed-off-by: Andriy Gelman <andriy.gelman@gmail.com>
---
 libavcodec/v4l2_m2m_enc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/v4l2_m2m_enc.c b/libavcodec/v4l2_m2m_enc.c
index 6d74c4c083d..6e18217c35f 100644
--- a/libavcodec/v4l2_m2m_enc.c
+++ b/libavcodec/v4l2_m2m_enc.c
@@ -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);