[FFmpeg-cvslog] avcodec/smacker: fix indention after previous commit

Michael Niedermayer git at videolan.org
Thu Jul 7 22:59:48 EEST 2022


ffmpeg | branch: master | Michael Niedermayer <michael at niedermayer.cc> | Thu Jul  7 14:35:19 2022 +0200| [7796d740bde81af73c5914534f96dfd90db7260f] | committer: Michael Niedermayer

avcodec/smacker: fix indention after previous commit

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=7796d740bde81af73c5914534f96dfd90db7260f
---

 libavcodec/smacker.c | 36 ++++++++++++++++++------------------
 1 file changed, 18 insertions(+), 18 deletions(-)

diff --git a/libavcodec/smacker.c b/libavcodec/smacker.c
index 5d94a54179..9d02968d64 100644
--- a/libavcodec/smacker.c
+++ b/libavcodec/smacker.c
@@ -676,25 +676,25 @@ static int smka_decode_frame(AVCodecContext *avctx, AVFrame *frame,
 
         if (vlc[0       ].table || vlc[         1].table ||
             vlc[2*stereo].table || vlc[2*stereo+1].table) {
-        for(; i < unp_size ; i++) {
-            unsigned idx = 2 * (i & stereo);
-            if (get_bits_left(&gb) < 0) {
-                ret = AVERROR_INVALIDDATA;
-                goto error;
+            for(; i < unp_size ; i++) {
+                unsigned idx = 2 * (i & stereo);
+                if (get_bits_left(&gb) < 0) {
+                    ret = AVERROR_INVALIDDATA;
+                    goto error;
+                }
+                if (vlc[idx].table)
+                    res = get_vlc2(&gb, vlc[idx].table, SMKTREE_BITS, 3);
+                else
+                    res = values[idx];
+                val  = res;
+                if (vlc[++idx].table)
+                    res = get_vlc2(&gb, vlc[idx].table, SMKTREE_BITS, 3);
+                else
+                    res = values[idx];
+                val |= res << 8;
+                pred[idx / 2] += val;
+                *samples++ = pred[idx / 2];
             }
-            if (vlc[idx].table)
-                res = get_vlc2(&gb, vlc[idx].table, SMKTREE_BITS, 3);
-            else
-                res = values[idx];
-            val  = res;
-            if (vlc[++idx].table)
-                res = get_vlc2(&gb, vlc[idx].table, SMKTREE_BITS, 3);
-            else
-                res = values[idx];
-            val |= res << 8;
-            pred[idx / 2] += val;
-            *samples++ = pred[idx / 2];
-        }
         } else if (stereo) {
             val  = 256*values[1] + values[0];
             val2 = 256*values[3] + values[2];



More information about the ffmpeg-cvslog mailing list