From d4b989c94d7ec2693bd52b286099f02d99e2bc4f Mon Sep 17 00:00:00 2001 From: Zhao Zhili Date: Tue, 13 Jun 2023 15:37:18 +0800 Subject: [PATCH] avformat/asfdec_f: fix need_parsing flag for codec mpeg4 AVSTREAM_PARSE_FULL_ONCE is only implemented for H.264. Signed-off-by: Zhao Zhili --- libavformat/asfdec_f.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/asfdec_f.c b/libavformat/asfdec_f.c index 1e3eb33fd6..5405956467 100644 --- a/libavformat/asfdec_f.c +++ b/libavformat/asfdec_f.c @@ -460,7 +460,7 @@ static int asf_read_stream_properties(AVFormatContext *s, int64_t size) if (st->codecpar->codec_id == AV_CODEC_ID_H264) sti->need_parsing = AVSTREAM_PARSE_FULL_ONCE; if (st->codecpar->codec_id == AV_CODEC_ID_MPEG4) - sti->need_parsing = AVSTREAM_PARSE_FULL_ONCE; + sti->need_parsing = AVSTREAM_PARSE_FULL; if (st->codecpar->codec_id == AV_CODEC_ID_HEVC) sti->need_parsing = AVSTREAM_PARSE_FULL; }