From 48ff6683ba5d40b629428673b1028e8ec542a9fa Mon Sep 17 00:00:00 2001 From: Nicolas George Date: Tue, 3 Nov 2015 09:57:17 -0800 Subject: lavfi: add a frame_rate field to AVFilterLink. (cherry picked from ffmpeg commit 7b42036b3b23c85f473bf9369e37fa8da22eaf93) Signed-off-by: Anton Khirnov --- libavfilter/avfilter.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libavfilter/avfilter.h') diff --git a/libavfilter/avfilter.h b/libavfilter/avfilter.h index 9dbfeea9eb..18908583a2 100644 --- a/libavfilter/avfilter.h +++ b/libavfilter/avfilter.h @@ -375,6 +375,18 @@ struct AVFilterLink { AVLINK_STARTINIT, ///< started, but incomplete AVLINK_INIT ///< complete } init_state; + + /** + * Frame rate of the stream on the link, or 1/0 if unknown or variable; + * if left to 0/0, will be automatically copied from the first input + * of the source filter if it exists. + * + * Sources should set it to the real constant frame rate. + * If the source frame rate is unknown or variable, set this to 1/0. + * Filters should update it if necessary depending on their function. + * Sinks can use it to set a default output frame rate. + */ + AVRational frame_rate; }; /** -- cgit v1.2.3