summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-02-07 11:38:13 +0100
committerAnton Khirnov <anton@khirnov.net>2024-02-07 11:46:55 +0100
commit7e6e9c23942cf8c367158b0c169f2aefc656c11c (patch)
tree89eac925ec4650c5bc3b70267a173ebf0abf5b85
parentbed1551f0ce546dcb53d5f657d4f448d71add6b0 (diff)
lavf/apng: set ts_flags
-rw-r--r--libavformat/apngdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/apngdec.c b/libavformat/apngdec.c
index 8f5f37a2b1..b75f26133f 100644
--- a/libavformat/apngdec.c
+++ b/libavformat/apngdec.c
@@ -170,6 +170,7 @@ static int apng_read_header(AVFormatContext *s)
/* set the timebase to something large enough (1/100,000 of second)
* to hopefully cope with all sane frame durations */
avpriv_set_pts_info(st, 64, 1, 100000);
+ st->ts_flags = AVFORMAT_TS_FLAG_DURATION;
st->codecpar->codec_type = AVMEDIA_TYPE_VIDEO;
st->codecpar->codec_id = AV_CODEC_ID_APNG;
st->codecpar->width = avio_rb32(pb);