Skip to content

Commit

Permalink
avcodec/d3d12va_h264: cast mapped_data to void* before passing it to …
Browse files Browse the repository at this point in the history
…mapped_data()

Fixes -Wincompatible-pointer-types warnings.

Signed-off-by: James Almer <[email protected]>
  • Loading branch information
jamrial committed Jan 24, 2024
1 parent 04332ca commit 342cc17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libavcodec/d3d12va_h264.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 342cc17

Please sign in to comment.