[FFmpeg-cvslog] lavfi/vf_libplacebo: also skip cache if in FPS == out FPS

Niklas Haas git at videolan.org
Tue Jun 20 18:11:51 EEST 2023


ffmpeg | branch: master | Niklas Haas <git at haasn.dev> | Thu Jun 15 17:01:07 2023 +0200| [1b2c6c9a0367e49842ae6464c7d077f35ad22052] | committer: Niklas Haas

lavfi/vf_libplacebo: also skip cache if in FPS == out FPS

Fixes an oversight in the previous code which should have been >=, not >.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1b2c6c9a0367e49842ae6464c7d077f35ad22052
---

 libavfilter/vf_libplacebo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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;



More information about the ffmpeg-cvslog mailing list