lavfi: add a frame_rate field to AVFilterLink.
[ffmpeg.git] / libavfilter / avfilter.c
index fb74f26..dfa2d2b 100644 (file)
@@ -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;