avcodec/idctdsp: Transmit studio_profile to init instead of using AVCodecContext...
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 28 May 2018 19:19:08 +0000 (21:19 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 30 May 2018 15:58:08 +0000 (17:58 +0200)
commitb3332a182f8ba33a34542e4a0370f38b914ccf7d
treee64ea3bae2d077a04d8559b5903b2dba8a99b1d2
parent1aa519245193485cd74a52aacc99fd3fec58d0b4
avcodec/idctdsp: Transmit studio_profile to init instead of using AVCodecContext profile

These 2 fields are not always the same, it is simpler to always use the same field
for detecting studio profile

Fixes: null pointer dereference
Fixes: ffmpeg_crash_3.avi

Found-by: Thuan Pham <thuanpv@comp.nus.edu.sg>, Marcel Böhme, Andrew Santosa and Alexandru RazvanCaciulescu with AFLSmart
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/idctdsp.c
libavcodec/idctdsp.h
libavcodec/mpegvideo.c