diff options
author | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-11-11 14:45:24 +0100 |
---|---|---|
committer | Hendrik Leppkes <h.leppkes@gmail.com> | 2015-11-11 14:47:29 +0100 |
commit | 0b73d0ff0df7135332ef77e78b619b0822d248a8 (patch) | |
tree | 416ba3e466c541f11712af6d09dc959363ae00cb /libavfilter/avfilter.c | |
parent | b33d58c31f210d6409a54f3adb6e9a3d0c1642f6 (diff) | |
parent | 48ff6683ba5d40b629428673b1028e8ec542a9fa (diff) | |
download | ffmpeg-0b73d0ff0df7135332ef77e78b619b0822d248a8.tar.gz |
Merge commit '48ff6683ba5d40b629428673b1028e8ec542a9fa'
* commit '48ff6683ba5d40b629428673b1028e8ec542a9fa':
lavfi: add a frame_rate field to AVFilterLink.
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
Diffstat (limited to 'libavfilter/avfilter.c')
-rw-r--r-- | libavfilter/avfilter.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libavfilter/avfilter.c b/libavfilter/avfilter.c index 7dc8b482be..c5c30448dc 100644 --- a/libavfilter/avfilter.c +++ b/libavfilter/avfilter.c @@ -275,10 +275,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->frame_rate.num && !link->frame_rate.den) + link->frame_rate = inlink->frame_rate; if (!link->w) link->w = inlink->w; if (!link->h) |