Fixes -Wincompatible-pointer-types warnings.
Showing the changes to libavcodec (1 of 1 file). Show all
Unified · Split
| @@ -117,7 +117,7 @@ static int update_input_arguments(AVCodecContext *avctx, D3D12_VIDEO_DECODE_INPU · 116 unmodified lines | ||
| 117 | 117 | DXVA_Slice_H264_Short *slice; |
| 118 | 118 | D3D12_VIDEO_DECODE_FRAME_ARGUMENT *args; |
| 119 | 119 | |
| 120 | − if (FAILED(ID3D12Resource_Map(buffer, 0, NULL, &mapped_data))) { | |
| 120 | + if (FAILED(ID3D12Resource_Map(buffer, 0, NULL, (void **)&mapped_data))) { | |
| 121 | 121 | av_log(avctx, AV_LOG_ERROR, "Failed to map D3D12 Buffer resource!\n"); |
| 122 | 122 | return AVERROR(EINVAL); |
| 123 | 123 | } |