[FFmpeg-cvslog] avformat/asfdec_f: fix need_parsing flag for codec mpeg4

Zhao Zhili git at videolan.org
Mon Jul 3 15:59:36 EEST 2023


ffmpeg | branch: master | Zhao Zhili <zhilizhao at tencent.com> | Tue Jun 13 15:37:18 2023 +0800| [d4b989c94d7ec2693bd52b286099f02d99e2bc4f] | committer: Zhao Zhili

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 <zhilizhao at tencent.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=d4b989c94d7ec2693bd52b286099f02d99e2bc4f
---

 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;
     }



More information about the ffmpeg-cvslog mailing list