mirror of https://git.ffmpeg.org/ffmpeg.git
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>
This commit is contained in:
parent
9aa388e758
commit
49a7fe86fe
|
@ -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 };
|
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");
|
av_log(avctx, AV_LOG_ERROR, "Failed to map D3D12 Buffer resource!\n");
|
||||||
return AVERROR(EINVAL);
|
return AVERROR(EINVAL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue