History

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

Fixes -Wincompatible-pointer-types warnings.

James Almer committed 2 years ago

Commit 342cc171 parent 04332ca1 file · +1 −1Browse files

Showing the changes to libavcodec (1 of 1 file). Show all

Unified · Split

libavcodec/d3d12va_h264.c+1−1
@@ -117,7 +117,7 @@ static int update_input_arguments(AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPU · 116 unmodified lines
117117 DXVA_Slice_H264_Short *slice;
118118 D3D12_VIDEO_DECODE_FRAME_ARGUMENT *args;
119119
120− if (FAILED(ID3D12Resource_Map(buffer, 0, NULL, &mapped_data))) {
120+ if (FAILED(ID3D12Resource_Map(buffer, 0, NULL, (void **)&mapped_data))) {
121121 av_log(avctx, AV_LOG_ERROR, "Failed to map D3D12 Buffer resource!\n");
122122 return AVERROR(EINVAL);
123123 }

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t