aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter/vf_framestep.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_framestep.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_framestep.c')
-rw-r--r--libavfilter/vf_framestep.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libavfilter/vf_framestep.c b/libavfilter/vf_framestep.c
index b8eee53b59..da69e2ba6c 100644
--- a/libavfilter/vf_framestep.c
+++ b/libavfilter/vf_framestep.c
@@ -25,6 +25,7 @@
#include "libavutil/opt.h"
#include "avfilter.h"
+#include "filters.h"
#include "internal.h"
#include "video.h"
@@ -48,14 +49,16 @@ static int config_output_props(AVFilterLink *outlink)
AVFilterContext *ctx = outlink->src;
FrameStepContext *framestep = ctx->priv;
AVFilterLink *inlink = ctx->inputs[0];
+ FilterLink *il = ff_filter_link(inlink);
+ FilterLink *ol = ff_filter_link(outlink);
- outlink->frame_rate =
- av_div_q(inlink->frame_rate, (AVRational){framestep->frame_step, 1});
+ ol->frame_rate =
+ av_div_q(il->frame_rate, (AVRational){framestep->frame_step, 1});
av_log(ctx, AV_LOG_VERBOSE, "step:%d frame_rate:%d/%d(%f) -> frame_rate:%d/%d(%f)\n",
framestep->frame_step,
- inlink->frame_rate.num, inlink->frame_rate.den, av_q2d(inlink->frame_rate),
- outlink->frame_rate.num, outlink->frame_rate.den, av_q2d(outlink->frame_rate));
+ il->frame_rate.num, il->frame_rate.den, av_q2d(il->frame_rate),
+ ol->frame_rate.num, ol->frame_rate.den, av_q2d(ol->frame_rate));
return 0;
}