mirror of https://git.ffmpeg.org/ffmpeg.git
vp3: fix regression with mplayer-crash.ogv
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
e1a8164d62
commit
a2a12e3358
|
@ -1570,10 +1570,7 @@ static void render_slice(Vp3DecodeContext *s, int slice)
|
||||||
/* invert DCT and place (or add) in final output */
|
/* invert DCT and place (or add) in final output */
|
||||||
|
|
||||||
if (s->all_fragments[i].coding_method == MODE_INTRA) {
|
if (s->all_fragments[i].coding_method == MODE_INTRA) {
|
||||||
int index;
|
vp3_dequant(s, s->all_fragments + i, plane, 0, block);
|
||||||
index = vp3_dequant(s, s->all_fragments + i, plane, 0, block);
|
|
||||||
if (index > 63)
|
|
||||||
continue;
|
|
||||||
if(s->avctx->idct_algo!=FF_IDCT_VP3)
|
if(s->avctx->idct_algo!=FF_IDCT_VP3)
|
||||||
block[0] += 128<<3;
|
block[0] += 128<<3;
|
||||||
s->dsp.idct_put(
|
s->dsp.idct_put(
|
||||||
|
@ -1581,10 +1578,7 @@ static void render_slice(Vp3DecodeContext *s, int slice)
|
||||||
stride,
|
stride,
|
||||||
block);
|
block);
|
||||||
} else {
|
} else {
|
||||||
int index = vp3_dequant(s, s->all_fragments + i, plane, 1, block);
|
if (vp3_dequant(s, s->all_fragments + i, plane, 1, block)) {
|
||||||
if (index > 63)
|
|
||||||
continue;
|
|
||||||
if (index > 0) {
|
|
||||||
s->dsp.idct_add(
|
s->dsp.idct_add(
|
||||||
output_plane + first_pixel,
|
output_plane + first_pixel,
|
||||||
stride,
|
stride,
|
||||||
|
|
Loading…
Reference in New Issue