History

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

Fixes -Wincompatible-pointer-types warnings.

James Almer committed 2 years ago

Commit 49a7fe81 parent 9aa388e1 file · +1 −1Browse files

Unified · Split

libavcodec/d3d12va_vc1.c+1−1
@@ -108,7 +108,7 @@ static int update_input_arguments(AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPU · 107 unmodified lines
108 108
109 static const uint8_t start_code[] = { 0, 0, 1, 0x0d };109 static const uint8_t start_code[] = { 0, 0, 1, 0x0d };
110 110
111 if (FAILED(ID3D12Resource_Map(buffer, 0, NULL, &mapped_data))) {111 if (FAILED(ID3D12Resource_Map(buffer, 0, NULL, (void **)&mapped_data))) {
112 av_log(avctx, AV_LOG_ERROR, "Failed to map D3D12 Buffer resource!\n");112 av_log(avctx, AV_LOG_ERROR, "Failed to map D3D12 Buffer resource!\n");
113 return AVERROR(EINVAL);113 return AVERROR(EINVAL);
114 }114 }

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