aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-02 15:27:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-08 05:13:32 +0100
commitb945f558c797b623733c319c9b68639be0a2c391 (patch)
tree95b873a7aebe28f532f7eeb27e791234b8a139dc
parente1a2bcbec84eb687d0636a149e8f7f97069a4240 (diff)
downloadffmpeg-b945f558c797b623733c319c9b68639be0a2c391.tar.gz
vp3: fix regression with mplayer-crash.ogv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at> (cherry picked from commit a2a12e3358c3bbdc0246ffc94973e58eba50ee30) Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r--libavcodec/vp3.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index fe8af86440..99842e07c7 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1462,10 +1462,7 @@ static void render_slice(Vp3DecodeContext *s, int slice)
/* invert DCT and place (or add) in final output */
if (s->all_fragments[i].coding_method == MODE_INTRA) {
- int index;
- index = vp3_dequant(s, s->all_fragments + i, plane, 0, block);
- if (index > 63)
- continue;
+ vp3_dequant(s, s->all_fragments + i, plane, 0, block);
if(s->avctx->idct_algo!=FF_IDCT_VP3)
block[0] += 128<<3;
s->dsp.idct_put(
@@ -1473,10 +1470,7 @@ static void render_slice(Vp3DecodeContext *s, int slice)
stride,
block);
} else {
- int index = vp3_dequant(s, s->all_fragments + i, plane, 1, block);
- if (index > 63)
- continue;
- if (index > 0) {
+ if (vp3_dequant(s, s->all_fragments + i, plane, 1, block)) {
s->dsp.idct_add(
output_plane + first_pixel,
stride,