aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-01-03 13:38:01 +0100
committerJanne Grunau <janne-libav@jannau.net>2012-01-05 18:18:08 +0100
commit9b4767e4784577f3107730316fe652ccaccd9b3a (patch)
treed1d6f95502b309a87af0d1061bb10faf884162fb
parent2ba65879b5853b49bbefb75346fd73c8645bccea (diff)
downloadffmpeg-9b4767e4784577f3107730316fe652ccaccd9b3a.tar.gz
vp3: fix streams with non-zero last coefficient
Fixes a regression introduced in 8b94df0f2047e972.
-rw-r--r--libavcodec/vp3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index f44d084dbd..602b5fa7a1 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1378,6 +1378,8 @@ static inline int vp3_dequant(Vp3DecodeContext *s, Vp3Fragment *frag,
return i;
}
} while (i < 64);
+ // return value is expected to be a valid level
+ i--;
end:
// the actual DC+prediction is in the fragment structure
block[0] = frag->dc * s->qmat[0][inter][plane][0];