1
0
Fork 0

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:
Hendrik Leppkes 2021-02-26 09:00:37 +01:00
parent 81d297fcf7
commit da062205ce
Signed by: hendrik
GPG Key ID: 846079A4B0A7C1B5
1 changed files with 0 additions and 3 deletions

View File

@ -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();