ffmpeg | branch: master | James Almer <jamr...@gmail.com> | Thu Dec 21 09:32:57 2023 -0300| [1747c2fc3351656c5fa7fc9a63ce5f1fa75d6e8d] | committer: James Almer
avutil/hwcontext_d3d12va: remove unused variables Removes -Wunused-variable warnings. Signed-off-by: James Almer <jamr...@gmail.com> > http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1747c2fc3351656c5fa7fc9a63ce5f1fa75d6e8d --- libavutil/hwcontext_d3d12va.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/libavutil/hwcontext_d3d12va.c b/libavutil/hwcontext_d3d12va.c index 80d27ef2cd..414dd44290 100644 --- a/libavutil/hwcontext_d3d12va.c +++ b/libavutil/hwcontext_d3d12va.c @@ -164,8 +164,7 @@ fail: static void d3d12va_frames_uninit(AVHWFramesContext *ctx) { - AVD3D12VAFramesContext *frames_hwctx = ctx->hwctx; - D3D12VAFramesContext *s = ctx->internal->priv; + D3D12VAFramesContext *s = ctx->internal->priv; D3D12_OBJECT_RELEASE(s->sync_ctx.fence); if (s->sync_ctx.event) @@ -271,9 +270,7 @@ fail: static int d3d12va_frames_init(AVHWFramesContext *ctx) { - AVD3D12VAFramesContext *hwctx = ctx->hwctx; - AVD3D12VADeviceContext *device_hwctx = ctx->device_ctx->hwctx; - D3D12VAFramesContext *s = ctx->internal->priv; + AVD3D12VAFramesContext *hwctx = ctx->hwctx; int i; for (i = 0; i < FF_ARRAY_ELEMS(supported_formats); i++) { @@ -326,7 +323,6 @@ static int d3d12va_transfer_get_formats(AVHWFramesContext *ctx, enum AVHWFrameTransferDirection dir, enum AVPixelFormat **formats) { - D3D12VAFramesContext *s = ctx->internal->priv; enum AVPixelFormat *fmts; fmts = av_malloc_array(2, sizeof(*fmts)); _______________________________________________ ffmpeg-cvslog mailing list ffmpeg-cvslog@ffmpeg.org https://ffmpeg.org/mailman/listinfo/ffmpeg-cvslog To unsubscribe, visit link above, or email ffmpeg-cvslog-requ...@ffmpeg.org with subject "unsubscribe".