summaryrefslogtreecommitdiff
path: root/libavformat
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2023-04-05 19:09:48 +0200
committerAnton Khirnov <anton@khirnov.net>2023-04-13 15:34:07 +0200
commitba4b73c9779c32580f8a3ba08602a5d94e0bcd7c (patch)
tree4a88df75e31bddb8b2b2bb1b03f5eeb3a15dce8f /libavformat
parentd56652fdc8e1315309516be320a7250854550fa5 (diff)
downloadffmpeg-ba4b73c9779c32580f8a3ba08602a5d94e0bcd7c.tar.gz
lavf/rawdec: set avg_frame_rate
Timestamps in two FATE H.264 conformance tests now start at 1 instead of 0, which also happens in some other H.264 tests before this commit and so is not a big issue. Conversely, timestamps in some HEVC conformance tests start from a smaller value now. Ideally this should be addressed later in a more general way. h264-conformance-frext-frext2_panasonic_b no longer requires -vsync passthrough.
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/rawdec.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index de804366ed..9126a9e53b 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -86,6 +86,7 @@ int ff_raw_video_read_header(AVFormatContext *s)
st->codecpar->codec_id = s->iformat->raw_codec_id;
sti->need_parsing = AVSTREAM_PARSE_FULL_RAW;
+ st->avg_frame_rate = s1->framerate;
sti->avctx->framerate = s1->framerate;
avpriv_set_pts_info(st, 64, 1, 1200000);