mirror of https://git.ffmpeg.org/ffmpeg.git
avcodec/mpegvideo_dec: Move setting dct_unquant funcs to h263dec.c
It is a better place for it; no non-h263-based decoder needs these functions any more (both H.261 and the error resilience code recently stopped doing so). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
64d2bca452
commit
48cdb7d579
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue