From: pocopepe <[email protected]>

---
 libavfilter/vf_scale_webgpu.c | 3 ++-
 libavutil/hwcontext_webgpu.h  | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vf_scale_webgpu.c b/libavfilter/vf_scale_webgpu.c
index 14f8ddd8ac..28b51da055 100644
--- a/libavfilter/vf_scale_webgpu.c
+++ b/libavfilter/vf_scale_webgpu.c
@@ -20,6 +20,7 @@
 
 #include "libavutil/hwcontext.h"
 #include "libavutil/hwcontext_webgpu.h"
+#include "libavutil/internal.h"
 #include "libavutil/opt.h"
 #include "filters.h"
 #include "scale_eval.h"
@@ -163,7 +164,7 @@ static int scale_webgpu_filter_frame(AVFilterLink *inlink, 
AVFrame *in)
     AVFilterContext      *avctx  = inlink->dst;
     ScaleWebGPUContext   *s      = avctx->priv;
     AVFilterLink         *outlink = avctx->outputs[0];
-    AVHWFramesContext    *in_hwfc = (AVHWFramesContext 
*)inlink->hw_frames_ctx->data;
+    AVHWFramesContext    *in_hwfc = (AVHWFramesContext 
*)ff_filter_link(inlink)->hw_frames_ctx->data;
     AVWebGPUDeviceContext *wgpu   = in_hwfc->device_ctx->hwctx;
     AVWebGPUFrame        *in_f   = (AVWebGPUFrame *)in->data[0];
     int ret;
diff --git a/libavutil/hwcontext_webgpu.h b/libavutil/hwcontext_webgpu.h
index 2c60144fe2..89dfa19814 100644
--- a/libavutil/hwcontext_webgpu.h
+++ b/libavutil/hwcontext_webgpu.h
@@ -35,7 +35,7 @@ typedef struct AVWebGPUDeviceContext {
  * (CopyDst|CopySrc|StorageBinding|TextureBinding) and RGBA8Unorm respectively.
  */
 typedef struct AVWebGPUFramesContext {
-    WGPUTextureUsageFlags usage;
+    WGPUTextureUsage usage;
     WGPUTextureFormat     format;
 } AVWebGPUFramesContext;
 
-- 
2.53.0

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

Reply via email to