diff --git a/libavformat/dashdec.c b/libavformat/dashdec.c index 1daa0d4ce5..cf6c542d5f 100644 --- a/libavformat/dashdec.c +++ b/libavformat/dashdec.c @@ -2005,7 +2005,9 @@ static int open_demux_for_component(AVFormatContext *s, struct representation *p for (i = 0; i < pls->ctx->nb_streams; i++) { AVStream *st = avformat_new_stream(s, NULL); - AVStream *ist = pls->ctx->streams[i]; + FFStream *sti = ffstream(st); + const AVStream *ist = pls->ctx->streams[i]; + const FFStream *isti = cffstream(ist); if (!st) return AVERROR(ENOMEM); @@ -2019,6 +2021,7 @@ static int open_demux_for_component(AVFormatContext *s, struct representation *p // copy disposition st->disposition = ist->disposition; + sti->need_parsing = isti->need_parsing; } for (i = 0; i < pls->ctx->nb_stream_groups; i++) {