diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-05-28 22:29:58 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-05-30 17:58:08 +0200 |
commit | 44a2415a6d94f841f2026bb70b8b3c19ba68aa72 (patch) | |
tree | 9c027c02d043a10db82a68dbd0d6942438c191c9 /libavcodec/h263dec.c | |
parent | 8c50d0cccfe4c9f25a8494f76da55dcdc2275058 (diff) | |
download | ffmpeg-44a2415a6d94f841f2026bb70b8b3c19ba68aa72.tar.gz |
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>
Diffstat (limited to 'libavcodec/h263dec.c')
-rw-r--r-- | libavcodec/h263dec.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/h263dec.c b/libavcodec/h263dec.c index c082af1c52..f8a38083f2 100644 --- a/libavcodec/h263dec.c +++ b/libavcodec/h263dec.c @@ -546,6 +546,8 @@ retry: if (CONFIG_MPEG4_DECODER && avctx->codec_id == AV_CODEC_ID_MPEG4) { if (ff_mpeg4_workaround_bugs(avctx) == 1) 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, |