mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-24 13:56:33 +02:00
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>
This commit is contained in:
parent
841e1399e6
commit
20c5fb9721
@ -433,6 +433,12 @@ static int handle_eac3(MOVMuxContext *mov, AVPacket *pkt, MOVTrack *track)
|
||||
info->ec3_done = 1;
|
||||
goto concatenate;
|
||||
}
|
||||
} else {
|
||||
if (hdr->substreamid != 0) {
|
||||
avpriv_request_sample(mov->fc, "Multiple non EAC3 independent substreams");
|
||||
ret = AVERROR_PATCHWELCOME;
|
||||
goto end;
|
||||
}
|
||||
}
|
||||
|
||||
/* fill the info needed for the "dec3" atom */
|
||||
|
Loading…
x
Reference in New Issue
Block a user