avfilter/vf_scale_cuda: skip allocating intermediate texture if not needed

This commit is contained in:
Timo Rothenpieler committed 2026-08-20 12:09:22 +00:00
1 parent 50a9e34e1b
commit 3d7ea1dac4
1 file changed
+5 -3
+5 -3
View File
@@ -667,9 +667,11 @@ static av_cold int cudascale_setup_filters(AVFilterContext *ctx)
}
}
ret = inter_buf_init(ctx, outlink->w, inlink->h);
if (ret < 0)
goto fail;
if (s->pass_x == FILTER_TMP) {
ret = inter_buf_init(ctx, outlink->w, inlink->h);
if (ret < 0)
goto fail;
}
ret = 0;