[FFmpeg-cvslog] vp3: fix streams with non-zero last coefficient
Janne Grunau
git at videolan.org
Sun Jan 8 07:52:52 CET 2012
ffmpeg | branch: release/0.8 | Janne Grunau <janne-libav at jannau.net> | Tue Jan 3 13:38:01 2012 +0100| [82a11fcff24d9827070d77f1a3c6ba5d4dc12984] | committer: Reinhard Tartler
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 at tauware.de>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=82a11fcff24d9827070d77f1a3c6ba5d4dc12984
---
libavcodec/vp3.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 890db5c..2b47e93 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1306,6 +1306,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];
More information about the ffmpeg-cvslog
mailing list