This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch release/8.1
in repository ffmpeg.

commit eac505e3e8b5f73fb90b8ce5485d75fcc831abdf
Author:     Niklas Haas <[email protected]>
AuthorDate: Fri Jun 26 14:54:51 2026 +0200
Commit:     Marvin Scholz <[email protected]>
CommitDate: Mon Jun 29 15:53:50 2026 +0200

    avfilter/vf_scale_cuda: eliminate redundant context push/pop
    
    This is already done by cudascale_filter_frame().
    
    Signed-off-by: Niklas Haas <[email protected]>
    (cherry-picked from commit 0c3f04a97c2b6b8473631c61682bbf738b9a9978)
    Signed-off-by: Marvin Scholz <[email protected]>
---
 libavfilter/vf_scale_cuda.c | 7 -------
 1 file changed, 7 deletions(-)

diff --git a/libavfilter/vf_scale_cuda.c b/libavfilter/vf_scale_cuda.c
index a941b5755e..f35d9cdd55 100644
--- a/libavfilter/vf_scale_cuda.c
+++ b/libavfilter/vf_scale_cuda.c
@@ -753,7 +753,6 @@ static int scalecuda_resize(AVFilterContext *ctx, int pass,
 {
     CUDAScaleContext *s = ctx->priv;
     CudaFunctions *cu = s->hwctx->internal->cuda_dl;
-    CUcontext dummy, cuda_ctx = s->hwctx->cuda_ctx;
     int i, ret;
     int mpeg_range = in->color_range != AVCOL_RANGE_JPEG;
 
@@ -769,10 +768,6 @@ static int scalecuda_resize(AVFilterContext *ctx, int pass,
     int crop_width = (in->width - in->crop_right) - in->crop_left;
     int crop_height = (in->height - in->crop_bottom) - in->crop_top;
 
-    ret = CHECK_CU(cu->cuCtxPushCurrent(cuda_ctx));
-    if (ret < 0)
-        return ret;
-
     for (i = 0; i < s->in_planes; i++) {
         CUDA_TEXTURE_DESC tex_desc = {
             .filterMode = s->interp_use_linear ?
@@ -833,8 +828,6 @@ exit:
         if (tex[i])
             CHECK_CU(cu->cuTexObjectDestroy(tex[i]));
 
-    CHECK_CU(cu->cuCtxPopCurrent(&dummy));
-
     return ret;
 }
 

_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to