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:
Michael Niedermayer
2026-06-06 17:29:17 +00:00
committed by michaelni
parent 025d6330a5
commit b99c6fc8c3
+6
View File
@@ -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;
}