Skip to content

Commit e6d3fd9

Browse files
committed
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 95556e2) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
1 parent 09e4f84 commit e6d3fd9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libavformat/movenc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,7 @@ static int handle_eac3(MOVMuxContext *mov, AVPacket *pkt, MOVTrack *track)
375375

376376
if (hdr->substreamid == info->num_ind_sub + 1) {
377377
//info->num_ind_sub++;
378-
avpriv_request_sample(track->par, "Multiple independent substreams");
378+
avpriv_request_sample(mov->fc, "Multiple independent substreams");
379379
return AVERROR_PATCHWELCOME;
380380
} else if (hdr->substreamid < info->num_ind_sub ||
381381
hdr->substreamid == 0 && info->substream[0].bsid) {

0 commit comments

Comments
 (0)