mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-06-11 08:13:06 +00:00
avformat/dashdec: Fail with any inner stream count being 0
Fixes: ada-3-poc.mpd Found-by: Claude and Ada Logics. This issue was found by Anthropic from using agents to study security of open source projects, and I am from Ada Logics helping validate the found issues and report to maintainers. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
michaelni
parent
025d6330a5
commit
b99c6fc8c3
@@ -2173,6 +2173,8 @@ static int dash_read_header(AVFormatContext *s)
|
||||
|
||||
if (ret)
|
||||
return ret;
|
||||
if (rep->ctx->nb_streams == 0)
|
||||
return AVERROR_PATCHWELCOME;
|
||||
stream_index += rep->ctx->nb_streams;
|
||||
}
|
||||
|
||||
@@ -2191,6 +2193,8 @@ static int dash_read_header(AVFormatContext *s)
|
||||
|
||||
if (ret)
|
||||
return ret;
|
||||
if (rep->ctx->nb_streams == 0)
|
||||
return AVERROR_PATCHWELCOME;
|
||||
stream_index += rep->ctx->nb_streams;
|
||||
}
|
||||
|
||||
@@ -2209,6 +2213,8 @@ static int dash_read_header(AVFormatContext *s)
|
||||
|
||||
if (ret)
|
||||
return ret;
|
||||
if (rep->ctx->nb_streams == 0)
|
||||
return AVERROR_PATCHWELCOME;
|
||||
stream_index += rep->ctx->nb_streams;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user