mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-14 19:10:09 +01:00
avformat/movenc: Do not pass AVCodecParameters in avpriv_request_sample
Fixes: out of array read
Fixes: ffmpeg_crash_8.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 95556e27e2)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -375,7 +375,7 @@ static int handle_eac3(MOVMuxContext *mov, AVPacket *pkt, MOVTrack *track)
|
||||
|
||||
if (hdr->substreamid == info->num_ind_sub + 1) {
|
||||
//info->num_ind_sub++;
|
||||
avpriv_request_sample(track->par, "Multiple independent substreams");
|
||||
avpriv_request_sample(mov->fc, "Multiple independent substreams");
|
||||
return AVERROR_PATCHWELCOME;
|
||||
} else if (hdr->substreamid < info->num_ind_sub ||
|
||||
hdr->substreamid == 0 && info->substream[0].bsid) {
|
||||
|
||||
Reference in New Issue
Block a user