]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/h263dec: Reinitialize idct context if it has not been setup for the active...
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 28 May 2018 20:29:58 +0000 (22:29 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 May 2018 15:58:08 +0000 (17:58 +0200)
The profile after reading headers can be different from when the context was initialized

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/h263dec.c

index c082af1c5220c524b6dbe85c7542b3d10347fd10..f8a38083f23cf747948bfaa43a52d48678aaf28a 100644 (file)
@@ -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,