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>
pull/389/head
Zhao Zhili 1 year ago
parent 3eb7968ed9
commit d4b989c94d
  1. 2
      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;
}

Loading…
Cancel
Save