diff options
author | James Almer <jamrial@gmail.com> | 2024-01-24 17:26:32 -0300 |
---|---|---|
committer | James Almer <jamrial@gmail.com> | 2024-01-24 17:28:05 -0300 |
commit | 9aa388e758af84f3117874654ae5389fc1283b88 (patch) | |
tree | 8270d4f5410108110f009f9e2d383470b98bd016 | |
parent | 342cc1792f95dad455572dcd1b74cc63338fc447 (diff) | |
download | ffmpeg-9aa388e758af84f3117874654ae5389fc1283b88.tar.gz |
avcodec/d3d12va_hevc: cast mapped_data to void* before passing it to mapped_data()
Fixes -Wincompatible-pointer-types warnings.
Signed-off-by: James Almer <jamrial@gmail.com>
-rw-r--r-- | libavcodec/d3d12va_hevc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/d3d12va_hevc.c b/libavcodec/d3d12va_hevc.c index 2fd884b8e6..ae770536ea 100644 --- a/libavcodec/d3d12va_hevc.c +++ b/libavcodec/d3d12va_hevc.c @@ -111,7 +111,7 @@ static int update_input_arguments(AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPU DXVA_Slice_HEVC_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); } |