aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/dxva2_mpeg2.c
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2014-08-15 20:51:01 +0200
committerDiego Biurrun <diego@biurrun.de>2014-09-01 12:23:58 +0200
commit4600a85eaa6182e5a27464f6b9cae5a9ddbf3098 (patch)
tree682c6ff54f212fd5dcc6629c06102f772f51dc61 /libavcodec/dxva2_mpeg2.c
parent37c46743ee42df1d6986ba3c996e3af5b95511f7 (diff)
downloadffmpeg-4600a85eaa6182e5a27464f6b9cae5a9ddbf3098.tar.gz
dxva2: Pass variable of correct type to IDirectXVideoDecoder_GetBuffer()
This avoids related incompatible pointer type warnings.
Diffstat (limited to 'libavcodec/dxva2_mpeg2.c')
-rw-r--r--libavcodec/dxva2_mpeg2.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/libavcodec/dxva2_mpeg2.c b/libavcodec/dxva2_mpeg2.c
index f6ef5e52ab..65624e3ec6 100644
--- a/libavcodec/dxva2_mpeg2.c
+++ b/libavcodec/dxva2_mpeg2.c
@@ -156,14 +156,17 @@ static int commit_bitstream_and_slice_buffer(AVCodecContext *avctx,
s->current_picture_ptr->hwaccel_picture_private;
const int is_field = s->picture_structure != PICT_FRAME;
const unsigned mb_count = s->mb_width * (s->mb_height >> is_field);
+ void *dxva_data_ptr;
uint8_t *dxva_data, *current, *end;
unsigned dxva_size;
unsigned i;
if (FAILED(IDirectXVideoDecoder_GetBuffer(ctx->decoder,
DXVA2_BitStreamDateBufferType,
- &dxva_data, &dxva_size)))
+ &dxva_data_ptr, &dxva_size)))
return -1;
+
+ dxva_data = dxva_data_ptr;
current = dxva_data;
end = dxva_data + dxva_size;