diff --git a/libavcodec/vdpau_render.h b/libavcodec/vdpau_render.h index 776b6da608..2daeb13482 100644 --- a/libavcodec/vdpau_render.h +++ b/libavcodec/vdpau_render.h @@ -74,7 +74,7 @@ struct vdpau_render_state { } info; /** Describe size/location of the compressed video data. */ - int bitstreamBuffersAlloced; + int bitstreamBuffersAllocated; int bitstreamBuffersUsed; VdpBitstreamBuffer *bitstreamBuffers; }; diff --git a/libavcodec/vdpauvideo.c b/libavcodec/vdpauvideo.c index 0ac05eb89c..ab4a04868e 100644 --- a/libavcodec/vdpauvideo.c +++ b/libavcodec/vdpauvideo.c @@ -119,7 +119,7 @@ void ff_VDPAU_h264_add_data_chunk(H264Context *h, const uint8_t *buf, int buf_si render->bitstreamBuffers= av_fast_realloc( render->bitstreamBuffers, - &render->bitstreamBuffersAlloced, + &render->bitstreamBuffersAllocated, sizeof(*render->bitstreamBuffers)*(render->bitstreamBuffersUsed + 1) );