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>
Sun, 8 Jul 2018 17:45:47 +0000 (19:45 +0200)
commit92972f19168f323cfe133a42abf130a5f159bfd6
treef005ff60868a3fd9ad12c84673bcfb6d74ba4e75
parentf65d6ff9ab06e2f4036a7e0f71072a216e66d239
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