aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2015-11-03 09:57:17 -0800
committerAnton Khirnov <anton@khirnov.net>2015-11-09 08:09:34 +0100
commit48ff6683ba5d40b629428673b1028e8ec542a9fa (patch)
treebf3938f99ca50068b45a161ca1f3a0ba8d23578d /libavfilter/avfilter.c
parent79f5347a983342e2711ca8ba19ec3d8d151183f0 (diff)
downloadffmpeg-48ff6683ba5d40b629428673b1028e8ec542a9fa.tar.gz
lavfi: add a frame_rate field to AVFilterLink.
(cherry picked from ffmpeg commit 7b42036b3b23c85f473bf9369e37fa8da22eaf93) Signed-off-by: Anton Khirnov <anton@khirnov.net>
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index 64b26457f5..cd98d16220 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -195,6 +195,8 @@ int avfilter_config_links(AVFilterContext *filter)
link->src->inputs[0]->sample_aspect_ratio : (AVRational){1,1};
if (link->src->nb_inputs) {
+ if (!link->frame_rate.num && !link->frame_rate.den)
+ link->frame_rate = link->src->inputs[0]->frame_rate;
if (!link->w)
link->w = link->src->inputs[0]->w;
if (!link->h)