Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michael@niedermayer.cc>2018-06-27 17:51:51 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2018-07-08 20:45:47 +0300
commit92972f19168f323cfe133a42abf130a5f159bfd6 (patch)
treef005ff60868a3fd9ad12c84673bcfb6d74ba4e75
parentf65d6ff9ab06e2f4036a7e0f71072a216e66d239 (diff)
avformat/movenc: Check that frame_types other than EAC3_FRAME_TYPE_INDEPENDENT have a supported substream id
Fixes: out of array access Fixes: ffmpeg_bof_1.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 ed22dc22216f74c75ee7901f82649e1ff725ba50) Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r--libavformat/movenc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 58c50f64cb..b6cea27440 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -382,6 +382,11 @@ static int handle_eac3(MOVMuxContext *mov, AVPacket *pkt, MOVTrack *track)
info->ec3_done = 1;
goto concatenate;
}
+ } else {
+ if (hdr->substreamid != 0) {
+ avpriv_request_sample(mov->fc, "Multiple non EAC3 independent substreams");
+ return AVERROR_PATCHWELCOME;
+ }
}
/* fill the info needed for the "dec3" atom */