From 028cb6ab7d84abcc9e63a7486bc08942eccd79bc Mon Sep 17 00:00:00 2001 From: James Almer Date: Mon, 5 Oct 2026 18:20:10 -0300 Subject: [PATCH] avformat/demux: stop using deprecated AVStreamGroup fields Signed-off-by: James Almer --- libavformat/demux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libavformat/demux.c b/libavformat/demux.c index bc74b250f3..cfab580fb6 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -3209,7 +3209,8 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) lcevc = stg->params.layered_video; if (lcevc->width && lcevc->height) continue; - st = stg->streams[lcevc->el_index]; + av_assert0(stg->entries[lcevc->el_index]->type == AV_STREAM_GROUP_ENTRY_STREAM); + st = stg->entries[lcevc->el_index]->stream; lcevc->width = st->codecpar->width; lcevc->height = st->codecpar->height; }