[FFmpeg-devel] [PATCH 2/2] avcodec/d3d12va_mpeg2: change the type for the ID3D12Resource_Map input data argument

James Almer jamrial at gmail.com
Sun Dec 31 22:24:45 EET 2023


Fixes -Wincompatible-pointer-types warnings.

Signed-off-by: James Almer <jamrial at gmail.com>
---
 libavcodec/d3d12va_mpeg2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/d3d12va_mpeg2.c b/libavcodec/d3d12va_mpeg2.c
index a2ae8bf948..b964f8d2ff 100644
--- a/libavcodec/d3d12va_mpeg2.c
+++ b/libavcodec/d3d12va_mpeg2.c
@@ -98,7 +98,7 @@ static int update_input_arguments(AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPU
     const unsigned mb_count = s->mb_width * (s->mb_height >> is_field);
 
     int i;
-    uint8_t *mapped_data = NULL;
+    void *mapped_data = NULL;
     D3D12_VIDEO_DECODE_FRAME_ARGUMENT *args = &input_args->FrameArguments[input_args->NumFrameArguments++];
 
     D3D12_RANGE range = {
-- 
2.43.0



More information about the ffmpeg-devel mailing list