avcodec/mpeg4videodec: Check read profile before setting it
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Jun 2018 17:37:09 +0000 (19:37 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Thu, 28 Jun 2018 19:35:01 +0000 (21:35 +0200)
commit2aa9047486dbff12d9e040f917e5f799ed2fd78b
tree9a35b6fe556b898c8d52ebceb1d8603196c07669
parent95556e27e2c1d56d9e18f5db34d6f756f3011148
avcodec/mpeg4videodec: Check read profile before setting it

Fixes: null pointer dereference
Fixes: ffmpeg_crash_7.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/mpeg4videodec.c