[FFmpeg-cvslog] avcodec/d3d12va_h264: cast mapped_data to void* before passing it to mapped_data()

James Almer git at videolan.org
Wed Jan 24 22:37:31 EET 2024


ffmpeg | branch: master | James Almer <jamrial at gmail.com> | Wed Jan 24 17:26:12 2024 -0300| [342cc1792f95dad455572dcd1b74cc63338fc447] | committer: James Almer

avcodec/d3d12va_h264: cast mapped_data to void* before passing it to mapped_data()

Fixes -Wincompatible-pointer-types warnings.

Signed-off-by: James Almer <jamrial at gmail.com>

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

 libavcodec/d3d12va_h264.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libavcodec/d3d12va_h264.c b/libavcodec/d3d12va_h264.c
index 24e1c523fa..b09ffcf148 100644
--- a/libavcodec/d3d12va_h264.c
+++ b/libavcodec/d3d12va_h264.c
@@ -117,7 +117,7 @@ static int update_input_arguments(AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPU
     DXVA_Slice_H264_Short *slice;
     D3D12_VIDEO_DECODE_FRAME_ARGUMENT *args;
 
-    if (FAILED(ID3D12Resource_Map(buffer, 0, NULL, &mapped_data))) {
+    if (FAILED(ID3D12Resource_Map(buffer, 0, NULL, (void **)&mapped_data))) {
         av_log(avctx, AV_LOG_ERROR, "Failed to map D3D12 Buffer resource!\n");
         return AVERROR(EINVAL);
     }



More information about the ffmpeg-cvslog mailing list