mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-13 21:28:01 +02:00
avcodec/h263dec: Reinitialize idct context if it has not been setup for the active profile
The profile after reading headers can be different from when the context was initialized Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
8c50d0cccf
commit
44a2415a6d
@ -546,6 +546,8 @@ retry:
|
|||||||
if (CONFIG_MPEG4_DECODER && avctx->codec_id == AV_CODEC_ID_MPEG4) {
|
if (CONFIG_MPEG4_DECODER && avctx->codec_id == AV_CODEC_ID_MPEG4) {
|
||||||
if (ff_mpeg4_workaround_bugs(avctx) == 1)
|
if (ff_mpeg4_workaround_bugs(avctx) == 1)
|
||||||
goto retry;
|
goto retry;
|
||||||
|
if (s->studio_profile != (s->idsp.idct == NULL))
|
||||||
|
ff_mpv_idct_init(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* After H.263 & MPEG-4 header decode we have the height, width,
|
/* After H.263 & MPEG-4 header decode we have the height, width,
|
||||||
|
Loading…
Reference in New Issue
Block a user