avformat/movenc: Check that frame_types other than EAC3_FRAME_TYPE_INDEPENDENT have...
authorMichael Niedermayer <michael@niedermayer.cc>
Wed, 27 Jun 2018 14:51:51 +0000 (16:51 +0200)
committerMichael Niedermayer <michael@niedermayer.cc>
Mon, 16 Jul 2018 17:16:13 +0000 (19:16 +0200)
commit78b1fbca3404459dcf8a1c34b5c7f9a5825ad61f
tree41c3eb80cf4458867f79f40987e780a1c180adde
parent68fb93be04a40b9a90f7d118e459f9c09be3c913
avformat/movenc: Check that frame_types other than EAC3_FRAME_TYPE_INDEPENDENT have a supported substream id

Fixes: out of array access
Fixes: ffmpeg_bof_1.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 ed22dc22216f74c75ee7901f82649e1ff725ba50)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavformat/movenc.c