diff mbox series

[FFmpeg-devel] avfilter/vf_yadif_cuda: fix cc_fifo typos

Message ID 20230511171417.32206-1-leo.izen@gmail.com
State New
Headers show
Series [FFmpeg-devel] avfilter/vf_yadif_cuda: fix cc_fifo typos | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Leo Izen May 11, 2023, 5:14 p.m. UTC
Fixes calls to ff_ccfifo_freep and ff_ccfifo_alloc that were called as
ff_cc_fifo_ instead, breaking build. Should fix regression introduced
in cecf35ae3e997dd884295d692aa6829462394132. Also use y->cc_fifo
instead of s->cc_fifo.
---
 libavfilter/vf_yadif_cuda.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/libavfilter/vf_yadif_cuda.c b/libavfilter/vf_yadif_cuda.c
index f3f0b56768..73f04126c5 100644
--- a/libavfilter/vf_yadif_cuda.c
+++ b/libavfilter/vf_yadif_cuda.c
@@ -205,7 +205,7 @@  static av_cold void deint_cuda_uninit(AVFilterContext *ctx)
     av_frame_free(&y->prev);
     av_frame_free(&y->cur);
     av_frame_free(&y->next);
-    ff_cc_fifo_freep(&y->cc_fifo);
+    ff_ccfifo_freep(&y->cc_fifo);
 
     av_buffer_unref(&s->device_ref);
     s->hwctx = NULL;
@@ -295,7 +295,7 @@  static int config_output(AVFilterLink *link)
     else
         link->frame_rate = ctx->inputs[0]->frame_rate;
 
-    if (!(s->cc_fifo = ff_cc_fifo_alloc(link->frame_rate, ctx))) {
+    if (!(y->cc_fifo = ff_ccfifo_alloc(link->frame_rate, ctx))) {
         av_log(ctx, AV_LOG_ERROR, "Failure to setup CC FIFO queue\n");
         ret = AVERROR(ENOMEM);
         goto exit;