diff options
author | Anton Khirnov <anton@khirnov.net> | 2023-05-04 08:47:33 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2023-05-15 14:17:49 +0200 |
commit | e10a5b91bc1b138174ab2661171038431ca44213 (patch) | |
tree | 7b3e89ed37f2e308a2e1d844eca56ae0cb27fd8b /libavcodec/av1_parse.h | |
parent | 7be945a011917f3cff0ca8d7c09e0a71fe31d2c2 (diff) | |
download | ffmpeg-e10a5b91bc1b138174ab2661171038431ca44213.tar.gz |
lavc/av1*: fix exporting framerate
* take num_ticks_per_picture_minus_1 into account, since that is a part
of the framerate computation
* stop exporting num_ticks_per_picture_minus_1 into
AVCodecContext.ticks_per_frame, as that field is used for other
purposes (in conjunction with repeat_pict, which is not used at all by
av1)
Diffstat (limited to 'libavcodec/av1_parse.h')
-rw-r--r-- | libavcodec/av1_parse.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/av1_parse.h b/libavcodec/av1_parse.h index f4a5d2830e..1f3001d2a5 100644 --- a/libavcodec/av1_parse.h +++ b/libavcodec/av1_parse.h @@ -181,4 +181,7 @@ static inline int get_obu_bit_length(const uint8_t *buf, int size, int type) return size; } +AVRational ff_av1_framerate(int64_t ticks_per_frame, int64_t units_per_tick, + int64_t time_scale); + #endif /* AVCODEC_AV1_PARSE_H */ |