Message ID | 20231001125552.23976-2-anton@khirnov.net |
---|---|
State | Accepted |
Commit | 80401b86d30a9348decef6341aa4779469fad281 |
Headers | show |
Series | [FFmpeg-devel,1/9] lavfi/yadif: update output frame durations | expand |
Context | Check | Description |
---|---|---|
yinshiyou/make_loongarch64 | success | Make finished |
yinshiyou/make_fate_loongarch64 | success | Make fate finished |
andriy/make_x86 | success | Make finished |
andriy/make_fate_x86 | success | Make fate finished |
diff --git a/libavformat/demux.c b/libavformat/demux.c index 6decb08698..45cdb8e1b7 100644 --- a/libavformat/demux.c +++ b/libavformat/demux.c @@ -1200,7 +1200,7 @@ static int parse_packet(AVFormatContext *s, AVPacket *pkt, st->time_base, AV_ROUND_DOWN); } - } else if ((s->iformat->flags & AVFMT_NOTIMESTAMPS) && st->codecpar->codec_type == AVMEDIA_TYPE_VIDEO) { + } else if (st->codecpar->codec_id == AV_CODEC_ID_GIF) { if (st->time_base.num > 0 && st->time_base.den > 0 && sti->parser->duration) { out_pkt->duration = sti->parser->duration;