Browse Source

dxva2: Fix some warnings about incompatible pointer type

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
tags/n1.0
jamal Michael Niedermayer 13 years ago
parent
commit
64c53fa16a
3 changed files with 3 additions and 3 deletions
  1. +1
    -1
      libavcodec/dxva2_h264.c
  2. +1
    -1
      libavcodec/dxva2_mpeg2.c
  3. +1
    -1
      libavcodec/dxva2_vc1.c

+ 1
- 1
libavcodec/dxva2_h264.c View File

@@ -293,7 +293,7 @@ static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx,
/* Create an annex B bitstream buffer with only slice NAL and finalize slice */
if (FAILED(IDirectXVideoDecoder_GetBuffer(ctx->decoder,
DXVA2_BitStreamDateBufferType,
&dxva_data, &dxva_size)))
(void **)&dxva_data, &dxva_size)))
return -1;
current = dxva_data;
end = dxva_data + dxva_size;


+ 1
- 1
libavcodec/dxva2_mpeg2.c View File

@@ -160,7 +160,7 @@ static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx,

if (FAILED(IDirectXVideoDecoder_GetBuffer(ctx->decoder,
DXVA2_BitStreamDateBufferType,
&dxva_data, &dxva_size)))
(void **)&dxva_data, &dxva_size)))
return -1;
current = dxva_data;
end = dxva_data + dxva_size;


+ 1
- 1
libavcodec/dxva2_vc1.c View File

@@ -178,7 +178,7 @@ static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx,

if (FAILED(IDirectXVideoDecoder_GetBuffer(ctx->decoder,
DXVA2_BitStreamDateBufferType,
&dxva_data, &dxva_size)))
(void **)&dxva_data, &dxva_size)))
return -1;

result = data_size <= dxva_size ? 0 : -1;


Loading…
Cancel
Save