aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2022-07-07 14:35:19 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2022-07-07 21:52:52 +0200
commit7796d740bde81af73c5914534f96dfd90db7260f (patch)
tree458d0f309c5e780596c265d93a4ee525c1e3b408
parent08e82e5b572b440f4faf160d2eac923ca47a59f8 (diff)
downloadffmpeg-7796d740bde81af73c5914534f96dfd90db7260f.tar.gz
avcodec/smacker: fix indention after previous commit
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavcodec/smacker.c36
1 files 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];