File ffmpeg-CVE-2018-13302.patch of Package ffmpeg.28802
diff --git a/libavformat/movenc.c b/libavformat/movenc.c
index 2838286..378a4ea 100644
--- a/libavformat/movenc.c
+++ b/libavformat/movenc.c
@@ -388,6 +388,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 */