aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_scale.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2024-08-06 08:50:21 +0200
committerAnton Khirnov <anton@khirnov.net>2024-08-15 19:34:27 +0200
commita23d565ea7d41e61f160578f9714a23e695f3bfd (patch)
tree4f49446e8da10c5496cffbd1e0e3270b61ca7381 /libavfilter/vf_scale.c
parentd6318a244d1dde48c1429c48b4076df47c2c7fe9 (diff)
downloadffmpeg-a23d565ea7d41e61f160578f9714a23e695f3bfd.tar.gz
lavfi: move AVFilterLink.frame_rate to FilterLink
Co-developed-by: James Almer <jamrial@gmail.com>
Diffstat (limited to 'libavfilter/vf_scale.c')
-rw-r--r--libavfilter/vf_scale.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavfilter/vf_scale.c b/libavfilter/vf_scale.c
index 680d264ec9..febb3178de 100644
--- a/libavfilter/vf_scale.c
+++ b/libavfilter/vf_scale.c
@@ -28,6 +28,7 @@
#include <string.h>
#include "avfilter.h"
+#include "filters.h"
#include "formats.h"
#include "framesync.h"
#include "internal.h"
@@ -800,12 +801,14 @@ fail:
static int config_props_ref(AVFilterLink *outlink)
{
AVFilterLink *inlink = outlink->src->inputs[1];
+ FilterLink *il = ff_filter_link(inlink);
+ FilterLink *ol = ff_filter_link(outlink);
outlink->w = inlink->w;
outlink->h = inlink->h;
outlink->sample_aspect_ratio = inlink->sample_aspect_ratio;
outlink->time_base = inlink->time_base;
- outlink->frame_rate = inlink->frame_rate;
+ ol->frame_rate = il->frame_rate;
outlink->colorspace = inlink->colorspace;
outlink->color_range = inlink->color_range;