From 8c99a1429a19268e91463e21fdf2f61b8a678135 Mon Sep 17 00:00:00 2001 From: Tong Wu Date: Thu, 11 Jan 2024 14:31:21 +0800 Subject: [PATCH] avcodec/d3d12va_mpeg2|vc1: remove the unused macros These macros are no longer used. Remove them. Signed-off-by: Tong Wu --- libavcodec/d3d12va_mpeg2.c | 4 ---- libavcodec/d3d12va_vc1.c | 4 ---- 2 files changed, 8 deletions(-) diff --git a/libavcodec/d3d12va_mpeg2.c b/libavcodec/d3d12va_mpeg2.c index b964f8d2ff..936af5f86a 100644 --- a/libavcodec/d3d12va_mpeg2.c +++ b/libavcodec/d3d12va_mpeg2.c @@ -31,10 +31,6 @@ #define MAX_SLICES 1024 #define INVALID_REF 0xffff -#define REF_RESOURCE(index) if (index != INVALID_REF) { \ - ctx->ref_resources[index] = frames_hwctx->texture_infos[index].texture; \ -} - typedef struct D3D12DecodePictureContext { DXVA_PictureParameters pp; DXVA_QmatrixData qm; diff --git a/libavcodec/d3d12va_vc1.c b/libavcodec/d3d12va_vc1.c index 8d8834b1cc..3aa2743107 100644 --- a/libavcodec/d3d12va_vc1.c +++ b/libavcodec/d3d12va_vc1.c @@ -33,10 +33,6 @@ #define MAX_SLICES 1024 #define INVALID_REF 0xffff -#define REF_RESOURCE(index) if (index != INVALID_REF) { \ - ctx->ref_resources[index] = frames_hwctx->texture_infos[index].texture; \ -} - typedef struct D3D12DecodePictureContext { DXVA_PictureParameters pp; unsigned slice_count;