aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/vp3.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-01-02 15:27:43 +0100
committerMichael Niedermayer <michaelni@gmx.at>2012-01-02 15:35:18 +0100
commita2a12e3358c3bbdc0246ffc94973e58eba50ee30 (patch)
tree9ddc6a38b7aeaba3af9ae46e0a5d9ee8e2fa51e2 /libavcodec/vp3.c
parente1a8164d62fb8d1943b3f7a66500f0315ca8fe76 (diff)
downloadffmpeg-a2a12e3358c3bbdc0246ffc94973e58eba50ee30.tar.gz
vp3: fix regression with mplayer-crash.ogv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/vp3.c')
-rw-r--r--libavcodec/vp3.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/libavcodec/vp3.c b/libavcodec/vp3.c
index 0137253e64..b446e519f0 100644
--- a/libavcodec/vp3.c
+++ b/libavcodec/vp3.c
@@ -1570,10 +1570,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(
@@ -1581,10 +1578,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,