diff mbox series

[FFmpeg-devel,4/5] avcodec/ylc: Reindent after previous commit

Message ID 20210308152957.601419-4-andreas.rheinhardt@gmail.com
State Accepted
Commit e8c646e9758c36a3a5b1f439810433d7d6827e99
Headers show
Series [FFmpeg-devel,1/5] avcodec/ylc: Remove write-only variable | expand

Checks

Context Check Description
andriy/x86_make success Make finished
andriy/x86_make_fate success Make fate finished
andriy/configure warning Failed to apply patch

Commit Message

Andreas Rheinhardt March 8, 2021, 3:29 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
---
 libavcodec/ylc.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/ylc.c b/libavcodec/ylc.c
index 793d8846b5..ab1f8958f3 100644
--- a/libavcodec/ylc.c
+++ b/libavcodec/ylc.c
@@ -326,15 +326,15 @@  static int decode_frame(AVCodecContext *avctx,
 
     for (int i = 0; i < 4; i++) {
         for (x = 0; x < 256; x++) {
-        unsigned len = get_unary(&gb, 1, 31);
-        uint32_t val = ((1U << len) - 1) + get_bits_long(&gb, len);
+            unsigned len = get_unary(&gb, 1, 31);
+            uint32_t val = ((1U << len) - 1) + get_bits_long(&gb, len);
 
-        s->table[x] = val;
-    }
+            s->table[x] = val;
+        }
 
         ret = build_vlc(avctx, &s->vlc[i], s->table);
-    if (ret < 0)
-        return ret;
+        if (ret < 0)
+            return ret;
     }
 
     memcpy(s->buffer, avpkt->data + boffset, avpkt->size - boffset);