Revert "avcodec/mpeg12dec: do not trust AVCodecContext input dimensions"
This reverts commit 77f1199e8f
.
This change had no positive effect on LAV, and only caused troubles with DXVA2 decoding.
This commit is contained in:
parent
81d297fcf7
commit
da062205ce
|
@ -795,9 +795,6 @@ static av_cold int mpeg_decode_init(AVCodecContext *avctx)
|
|||
Mpeg1Context *s = avctx->priv_data;
|
||||
MpegEncContext *s2 = &s->mpeg_enc_ctx;
|
||||
|
||||
if ( avctx->codec_tag != AV_RL32("VCR2")
|
||||
&& avctx->codec_tag != AV_RL32("BW10"))
|
||||
avctx->coded_width = avctx->coded_height = 0; // do not trust dimensions from input
|
||||
ff_mpv_decode_init(s2, avctx);
|
||||
|
||||
ff_mpeg12_init_vlcs();
|
||||
|
|
Loading…
Reference in New Issue