aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2023-06-13 15:37:18 +0800
committerZhao Zhili <zhilizhao@tencent.com>2023-07-04 04:49:48 +0800
commitd4b989c94d7ec2693bd52b286099f02d99e2bc4f (patch)
tree5cccd56aad9f998f4a925115087dd63c00813aa9 /libavformat
parent3eb7968ed98229e3b44a91b89c7cd5512643b182 (diff)
downloadffmpeg-d4b989c94d7ec2693bd52b286099f02d99e2bc4f.tar.gz
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@tencent.com>
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/asfdec_f.c2
1 files changed, 1 insertions, 1 deletions
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;
}