aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Almer <jamrial@gmail.com>2024-01-24 17:26:51 -0300
committerJames Almer <jamrial@gmail.com>2024-01-24 17:28:05 -0300
commit49a7fe86fe4c25efd15a4a71e7f61e27db7ba99d (patch)
tree15721a15110c1406ad5a59496617c928d72de1ac
parent9aa388e758af84f3117874654ae5389fc1283b88 (diff)
downloadffmpeg-49a7fe86fe4c25efd15a4a71e7f61e27db7ba99d.tar.gz
avcodec/d3d12va_vc1: 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_vc1.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/d3d12va_vc1.c b/libavcodec/d3d12va_vc1.c
index 3d15abd1f1..5bdcdb037b 100644
--- a/libavcodec/d3d12va_vc1.c
+++ b/libavcodec/d3d12va_vc1.c
@@ -108,7 +108,7 @@ static int update_input_arguments(AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPU
static const uint8_t start_code[] = { 0, 0, 1, 0x0d };
- 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);
}