summaryrefslogtreecommitdiff
path: root/libavfilter/avfilter.c
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2012-06-05 12:32:57 +0200
committerNicolas George <nicolas.george@normalesup.org>2012-06-09 08:42:50 +0200
commit7b42036b3b23c85f473bf9369e37fa8da22eaf93 (patch)
tree0d9e90e6dfe9db20f9ea293abcab85e78f33b685 /libavfilter/avfilter.c
parent04e2ac47495e1910416e607eb03105ddb0a322cc (diff)
lavfi: add a frame_rate field to AVFilterLink.
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r--libavfilter/avfilter.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c
index fb74f26dc2..dfa2d2b220 100644
--- a/libavfilter/avfilter.c
+++ b/libavfilter/avfilter.c
@@ -243,6 +243,9 @@ int avfilter_config_links(AVFilterContext *filter)
link->sample_aspect_ratio = inlink ?
inlink->sample_aspect_ratio : (AVRational){1,1};
+ if (inlink && !link->frame_rate.num && !link->frame_rate.den)
+ link->frame_rate = inlink->frame_rate;
+
if (inlink) {
if (!link->w)
link->w = inlink->w;