avcodec/mpeg4videodec: Remove use of FF_PROFILE_MPEG4_SIMPLE_STUDIO as indicator...
authorMichael Niedermayer <michael@niedermayer.cc>
Mon, 2 Jul 2018 22:27:04 +0000 (00:27 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Wed, 4 Jul 2018 10:11:36 +0000 (12:11 +0200)
commitbd27a9364ca274ca97f1df6d984e88a0700fb235
treea428799eee676771eece2d8743d4e83abfb8b85d
parent3b10bb8772c76177cc47b8d15a6970f19dd11039
avcodec/mpeg4videodec: Remove use of FF_PROFILE_MPEG4_SIMPLE_STUDIO as indicator of studio profile

The profile field is changed by code inside and outside the decoder,
its not a reliable indicator of the internal codec state.
Maintaining it consistency with studio_profile is messy.
Its easier to just avoid it and use only studio_profile

Fixes: assertion failure
Fixes: ffmpeg_crash_9.avi

Found-by: Thuan Pham, Marcel Böhme, Andrew Santosa and Alexandru Razvan Caciulescu with AFLSmart
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/error_resilience.c
libavcodec/h263dec.c
libavcodec/mpeg4videodec.c