[FFmpeg-cvslog] avcodec/d3d12va_mpeg2|vc1: remove the unused macros

Tong Wu git at videolan.org
Fri Jan 26 06:31:41 EET 2024


ffmpeg | branch: master | Tong Wu <tong1.wu at intel.com> | Thu Jan 11 14:31:21 2024 +0800| [8c99a1429a19268e91463e21fdf2f61b8a678135] | committer: Haihao Xiang

avcodec/d3d12va_mpeg2|vc1: remove the unused macros

These macros are no longer used. Remove them.

Signed-off-by: Tong Wu <tong1.wu at intel.com>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=8c99a1429a19268e91463e21fdf2f61b8a678135
---

 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;



More information about the ffmpeg-cvslog mailing list