diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index a81786479d..0c23012584 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -102,6 +102,11 @@ av_cold int ff_h263_decode_init(AVCodecContext *avctx) s->decode_mb = ff_h263_decode_mb; s->low_delay = 1; + // dct_unquantize defaults for H.263; + // they might change on a per-frame basis for MPEG-4. + s->dct_unquantize_intra = s->dct_unquantize_h263_intra; + s->dct_unquantize_inter = s->dct_unquantize_h263_inter; + /* select sub codec */ switch (avctx->codec->id) { case AV_CODEC_ID_H263: diff --git a/libavcodec/mpegvideo_dec.c b/libavcodec/mpegvideo_dec.c index da88a35120..1cab108935 100644 --- a/libavcodec/mpegvideo_dec.c +++ b/libavcodec/mpegvideo_dec.c @@ -60,12 +60,6 @@ int ff_mpv_decode_init(MpegEncContext *s, AVCodecContext *avctx) ff_mpv_idct_init(s); - // dct_unquantize defaults for H.261 and H.263; - // they might change on a per-frame basis for MPEG-4. - // Unused by the MPEG-1/2 decoders. - s->dct_unquantize_intra = s->dct_unquantize_h263_intra; - s->dct_unquantize_inter = s->dct_unquantize_h263_inter; - ff_h264chroma_init(&s->h264chroma, 8); //for lowres if (s->picture_pool) // VC-1 can call this multiple times