diff --git a/3rdparty/ffmpeg/libavformat/movenc.c b/3rdparty/ffmpeg/libavformat/movenc.c index b9c0f7ae..2e690e52 100644 --- a/3rdparty/ffmpeg/libavformat/movenc.c +++ b/3rdparty/ffmpeg/libavformat/movenc.c @@ -377,6 +377,12 @@ 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"); + ret = AVERROR_PATCHWELCOME; + goto end; + } } /* fill the info needed for the "dec3" atom */