diff options
author | jamal <jamrial@gmail.com> | 2012-07-27 05:23:13 -0300 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-28 03:28:46 +0200 |
commit | 64c53fa16aeca9cadd48ccf607803d6e4d26cc4d (patch) | |
tree | 20fda060080a9f070a0a4533c53dbd3b19e904ed | |
parent | 0fa352623d2322f99221e6e58d48fce9637054ee (diff) | |
download | ffmpeg-64c53fa16aeca9cadd48ccf607803d6e4d26cc4d.tar.gz |
dxva2: Fix some warnings about incompatible pointer type
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | libavcodec/dxva2_h264.c | 2 | ||||
-rw-r--r-- | libavcodec/dxva2_mpeg2.c | 2 | ||||
-rw-r--r-- | libavcodec/dxva2_vc1.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/libavcodec/dxva2_h264.c b/libavcodec/dxva2_h264.c index 6114a77f5a..c36ac60037 100644 --- a/libavcodec/dxva2_h264.c +++ b/libavcodec/dxva2_h264.c @@ -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; diff --git a/libavcodec/dxva2_mpeg2.c b/libavcodec/dxva2_mpeg2.c index e54eff09fb..2e48d28246 100644 --- a/libavcodec/dxva2_mpeg2.c +++ b/libavcodec/dxva2_mpeg2.c @@ -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; diff --git a/libavcodec/dxva2_vc1.c b/libavcodec/dxva2_vc1.c index a881d817e5..11433bbb07 100644 --- a/libavcodec/dxva2_vc1.c +++ b/libavcodec/dxva2_vc1.c @@ -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; |