diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-04-05 19:09:48 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-04-13 15:34:07 +0200 |
commit | ba4b73c9779c32580f8a3ba08602a5d94e0bcd7c (patch) | |
tree | 4a88df75e31bddb8b2b2bb1b03f5eeb3a15dce8f /libavformat/rawdec.c | |
parent | d56652fdc8e1315309516be320a7250854550fa5 (diff) | |
download | ffmpeg-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/rawdec.c')
-rw-r--r-- | libavformat/rawdec.c | 1 |
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); |