mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-10-28 10:04:37 +08:00
avfilter/vf_scale_cuda: skip allocating intermediate texture if not needed
This commit is contained in:
1 parent
50a9e34e1b
commit
3d7ea1dac4
1 file changed
+5
-3
@@ -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;
|
||||
|
||||
|
||||
Reference in new issue
Block a user