aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanne Grunau <janne-libav@jannau.net>2012-01-03 13:38:01 +0100
committerReinhard Tartler <siretart@tauware.de>2012-01-07 21:33:24 +0100
commitae24b5ce3a955e4003c667e5ab3526ce80c71138 (patch)
treefe9652637ac60c73df4915b3d07cea2e98b71c20
parentc9c7db0af2a0fc14764a07f0e61cebf11238e3c2 (diff)
downloadffmpeg-ae24b5ce3a955e4003c667e5ab3526ce80c71138.tar.gz
vp3: fix streams with non-zero last coefficient
Fixes a regression introduced in 8b94df0f2047e972. (cherry picked from commit 9b4767e4784577f3107730316fe652ccaccd9b3a) Signed-off-by: Reinhard Tartler <siretart@tauware.de> (cherry picked from commit 82a11fcff24d9827070d77f1a3c6ba5d4dc12984) Signed-off-by: Reinhard Tartler <siretart@tauware.de>
-rw-r--r--libavcodec/vp3.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 87cf03d24b..a4dd70d61f 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1316,6 +1316,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];