From 9b4767e4784577f3107730316fe652ccaccd9b3a Mon Sep 17 00:00:00 2001 From: Janne Grunau Date: Tue, 3 Jan 2012 13:38:01 +0100 Subject: vp3: fix streams with non-zero last coefficient Fixes a regression introduced in 8b94df0f2047e972. --- libavcodec/vp3.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/vp3.c') 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]; -- cgit v1.2.3