svq3: fix decoding residual blocks of b-frames.

The residual block data of 16x16 blocks was ignored for b-frames, which
leads to easy-to-identify artifacts. After this patch, the artifacts are
gone. Sample video: svq3_watermark.mov. (Fate results unaffected.)

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/8/merge
Ronald S. Bultje 12 years ago committed by Michael Niedermayer
parent b97d61f924
commit a1f1ca96b4
  1. 2
      libavcodec/svq3.c

@ -1237,7 +1237,7 @@ static int svq3_decode_frame(AVCodecContext *avctx, void *data,
return -1;
}
if (mb_type != 0)
if (mb_type != 0 || h->cbp)
ff_h264_hl_decode_mb(h);
if (h->pict_type != AV_PICTURE_TYPE_B && !h->low_delay)

Loading…
Cancel
Save