summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-06-27 17:27:50 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2018-06-28 21:35:01 +0200
commit95556e27e2c1d56d9e18f5db34d6f756f3011148 (patch)
tree81294dfbb62afaa16c868a5d712c12681aa25643 /libavformat
parent00e8181bd97c834fe60751b0c511d4bb97875f78 (diff)
downloadffmpeg-streaming-95556e27e2c1d56d9e18f5db34d6f756f3011148.zip
ffmpeg-streaming-95556e27e2c1d56d9e18f5db34d6f756f3011148.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>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/movenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 6eabf32..4ce5c23 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -429,7 +429,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");
ret = AVERROR_PATCHWELCOME;
goto end;
} else if (hdr->substreamid < info->num_ind_sub ||
OpenPOWER on IntegriCloud