aboutsummaryrefslogtreecommitdiffstats
path: root/libavfilter
diff options
context:
space:
mode:
authorNiklas Haas <git@haasn.dev>2023-06-15 17:01:07 +0200
committerNiklas Haas <git@haasn.dev>2023-06-20 17:09:58 +0200
commit1b2c6c9a0367e49842ae6464c7d077f35ad22052 (patch)
tree87c2783b651d698f0e9c5ccf95d7b68e3bd7f340 /libavfilter
parent618b72d4b407b916c47aa621ad90f21b7fa6adc2 (diff)
downloadffmpeg-1b2c6c9a0367e49842ae6464c7d077f35ad22052.tar.gz
lavfi/vf_libplacebo: also skip cache if in FPS == out FPS
Fixes an oversight in the previous code which should have been >=, not >.
Diffstat (limited to 'libavfilter')
-rw-r--r--libavfilter/vf_libplacebo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/vf_libplacebo.c b/libavfilter/vf_libplacebo.c
index f7b9bdba74..1085b6fdd0 100644
--- a/libavfilter/vf_libplacebo.c
+++ b/libavfilter/vf_libplacebo.c
@@ -881,7 +881,7 @@ static int output_frame(AVFilterContext *ctx, int64_t pts)
s->params.blend_params = NULL;
for (int i = 0; i < s->nb_inputs; i++) {
LibplaceboInput *in = &s->inputs[i];
- int high_fps = av_cmp_q(in->link->frame_rate, outlink->frame_rate) > 0;
+ int high_fps = av_cmp_q(in->link->frame_rate, outlink->frame_rate) >= 0;
if (in->qstatus != PL_QUEUE_OK)
continue;
s->params.skip_caching_single_frame = high_fps;