File: ffmpeg8-scale_d3d-refleak.patch

package info (click to toggle)
shotcut 26.1.30%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 60,392 kB
  • sloc: cpp: 77,605; javascript: 11,690; sh: 2,917; xml: 104; python: 84; makefile: 34; ansic: 6
file content (24 lines) | stat: -rw-r--r-- 869 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
--- libavfilter/vf_scale_d3d11.c.orig	2025-12-11 20:55:58.868401500 -0800
+++ libavfilter/vf_scale_d3d11.c	2025-12-11 21:28:08.890852000 -0800
@@ -340,13 +340,6 @@
         return AVERROR(EINVAL);
     }
 
-    ///< Propagate hw_frames_ctx to output
-    outl->hw_frames_ctx = av_buffer_ref(inl->hw_frames_ctx);
-    if (!outl->hw_frames_ctx) {
-        av_log(ctx, AV_LOG_ERROR, "Failed to propagate hw_frames_ctx to output\n");
-        return AVERROR(ENOMEM);
-    }
-
     ///< Initialize filter's hardware device context
     if (!s->hw_device_ctx) {
         AVHWFramesContext *in_frames_ctx = (AVHWFramesContext *)inl->hw_frames_ctx->data;
@@ -394,6 +387,7 @@
         return ret;
     }
 
+    ///< Propagate hw_frames_ctx to output
     outl->hw_frames_ctx = av_buffer_ref(s->hw_frames_ctx_out);
     if (!outl->hw_frames_ctx)
         return AVERROR(ENOMEM);