Skip to content

Commit 95556e2

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>
1 parent 00e8181 commit 95556e2

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
@@ -429,7 +429,7 @@ static int handle_eac3(MOVMuxContext *mov, AVPacket *pkt, MOVTrack *track)
429429

430430
if (hdr->substreamid == info->num_ind_sub + 1) {
431431
//info->num_ind_sub++;
432-
avpriv_request_sample(track->par, "Multiple independent substreams");
432+
avpriv_request_sample(mov->fc, "Multiple independent substreams");
433433
ret = AVERROR_PATCHWELCOME;
434434
goto end;
435435
} else if (hdr->substreamid < info->num_ind_sub ||

0 commit comments

Comments
 (0)