[FFmpeg-devel] [PATCH 4/4] avformat/asfdec_f: fix need_parsing flag for codec mpeg4
Zhao Zhili
quinkblack at foxmail.com
Tue Jun 13 10:37:18 EEST 2023
From: Zhao Zhili <zhilizhao at tencent.com>
AVSTREAM_PARSE_FULL_ONCE is only implemented for H.264.
Signed-off-by: Zhao Zhili <zhilizhao at tencent.com>
---
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;
}
--
2.25.1
More information about the ffmpeg-devel
mailing list