diff options
author | Michael Niedermayer <michael@niedermayer.cc> | 2018-06-27 17:27:50 +0200 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2018-07-08 19:45:47 +0200 |
commit | e6d3fd942f772f54ab6a5ca619cdaadef26b7702 (patch) | |
tree | 5ff47e9601bd8059a53384c4751ceea20b8d5deb | |
parent | 09e4f8436542f93e70ad668ea3c22e10f451006a (diff) | |
download | ffmpeg-e6d3fd942f772f54ab6a5ca619cdaadef26b7702.tar.gz |
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 95556e27e2c1d56d9e18f5db34d6f756f3011148)
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavformat/movenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c index 6228192f98..58c50f64cb 100644 --- a/libavformat/movenc.c +++ b/libavformat/movenc.c @@ -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) { |