diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-04-05 16:35:22 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-04-13 15:34:07 +0200 |
commit | 7b827a029338ef8af689e84a352825797b286e26 (patch) | |
tree | ed9913c3c669ca75a4b0476338d1cfc96f4e8696 /libavformat/demux.c | |
parent | ba4b73c9779c32580f8a3ba08602a5d94e0bcd7c (diff) | |
download | ffmpeg-7b827a029338ef8af689e84a352825797b286e26.tar.gz |
lavf/demux: treat streams with AVSTREAM_PARSE_FULL_RAW as having timestamps
In this case the timestamps are set by the parser.
Cf. a6b3471c44fd981d3b33ea9050f78a0bc9494c5e
Required by the following commit.
Diffstat (limited to 'libavformat/demux.c')
-rw-r--r-- | libavformat/demux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/demux.c b/libavformat/demux.c index b19ab86d08..06de71cd6e 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -2569,7 +2569,7 @@ int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options) extract_extradata_check(st)) break; if (sti->first_dts == AV_NOPTS_VALUE && - !(ic->iformat->flags & AVFMT_NOTIMESTAMPS) && + (!(ic->iformat->flags & AVFMT_NOTIMESTAMPS) || sti->need_parsing == AVSTREAM_PARSE_FULL_RAW) && sti->codec_info_nb_frames < ((st->disposition & AV_DISPOSITION_ATTACHED_PIC) ? 1 : ic->max_ts_probe) && (st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO || st->codecpar->codec_type == AVMEDIA_TYPE_AUDIO)) |