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>
Mon, 16 Jul 2018 17:02:12 +0000 (19:02 +0200)
commit679d749eaba9e5a8b8a9ea22500ab559f5be8940
tree7a226ddf78adeac9dd509e8de24ae7f10c27daa6
parent76105382244e79d072e7b993c7caf584151b0694
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>
(cherry picked from commit 2aa9047486dbff12d9e040f917e5f799ed2fd78b)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavcodec/mpeg4videodec.c