diff mbox series

[FFmpeg-devel,23/61] avcodec/vp3: Reindent after the previous commits

Message ID GV1P250MB0737C5BE1A066D69FD0F60FA8FC3A@GV1P250MB0737.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit 73fa6d486d50fde9ac783075fd253ebe8d79a55c
Headers show
Series [FFmpeg-devel,01/61] avcodec/vlc: Add functions to init static VLCElem[] without VLC | expand

Commit Message

Andreas Rheinhardt Sept. 26, 2023, 10:16 p.m. UTC
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/vp3.c | 52 ++++++++++++++++++++++++------------------------
 1 file changed, 26 insertions(+), 26 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index b7c323b153..b11be97fbf 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -2488,34 +2488,34 @@  static av_cold int vp3_decode_init(AVCodecContext *avctx)
 
         s->coeff_vlc = vlcs;
 
-    if (!s->theora_tables) {
-        const uint8_t (*bias_tabs)[32][2];
-
-        /* init VLC tables */
-        bias_tabs = CONFIG_VP4_DECODER && s->version >= 2 ? vp4_bias : vp3_bias;
-        for (int i = 0; i < FF_ARRAY_ELEMS(vlcs->vlcs); i++) {
-            ret = ff_vlc_init_from_lengths(&vlcs->vlcs[i], 11, 32,
-                                           &bias_tabs[i][0][1], 2,
-                                           &bias_tabs[i][0][0], 2, 1,
-                                           0, 0, avctx);
-            if (ret < 0)
-                return ret;
-            vlcs->vlc_tabs[i] = vlcs->vlcs[i].table;
-        }
-    } else {
-        for (int i = 0; i < FF_ARRAY_ELEMS(vlcs->vlcs); i++) {
-            const HuffTable *tab = &s->huffman_table[i];
-
-            ret = ff_vlc_init_from_lengths(&vlcs->vlcs[i], 11, tab->nb_entries,
-                                           &tab->entries[0].len, sizeof(*tab->entries),
-                                           &tab->entries[0].sym, sizeof(*tab->entries), 1,
-                                           0, 0, avctx);
-            if (ret < 0)
-                return ret;
-            vlcs->vlc_tabs[i] = vlcs->vlcs[i].table;
+        if (!s->theora_tables) {
+            const uint8_t (*bias_tabs)[32][2];
+
+            /* init VLC tables */
+            bias_tabs = CONFIG_VP4_DECODER && s->version >= 2 ? vp4_bias : vp3_bias;
+            for (int i = 0; i < FF_ARRAY_ELEMS(vlcs->vlcs); i++) {
+                ret = ff_vlc_init_from_lengths(&vlcs->vlcs[i], 11, 32,
+                                               &bias_tabs[i][0][1], 2,
+                                               &bias_tabs[i][0][0], 2, 1,
+                                               0, 0, avctx);
+                if (ret < 0)
+                    return ret;
+                vlcs->vlc_tabs[i] = vlcs->vlcs[i].table;
+            }
+        } else {
+            for (int i = 0; i < FF_ARRAY_ELEMS(vlcs->vlcs); i++) {
+                const HuffTable *tab = &s->huffman_table[i];
+
+                ret = ff_vlc_init_from_lengths(&vlcs->vlcs[i], 11, tab->nb_entries,
+                                               &tab->entries[0].len, sizeof(*tab->entries),
+                                               &tab->entries[0].sym, sizeof(*tab->entries), 1,
+                                               0, 0, avctx);
+                if (ret < 0)
+                    return ret;
+                vlcs->vlc_tabs[i] = vlcs->vlcs[i].table;
+            }
         }
     }
-    }
 
     ff_thread_once(&init_static_once, init_tables_once);