X-Git-Url: http://git.videolan.org/?p=ffmpeg.git;a=blobdiff_plain;f=libavcodec%2Fvdpau.c;h=5d83b449e819cba1f299d81582a535c7563a44f1;hp=50a57d0970c7eb3dd56eb37c7083189d05c61494;hb=7948a51b5c3d08e1a1173442a7ff72b220def303;hpb=82bb3048013201c0095d2853d4623633d912252f diff --git a/libavcodec/vdpau.c b/libavcodec/vdpau.c index 50a57d0970..5d83b449e8 100644 --- a/libavcodec/vdpau.c +++ b/libavcodec/vdpau.c @@ -38,12 +38,10 @@ * @{ */ -int ff_vdpau_common_start_frame(Picture *pic, +int ff_vdpau_common_start_frame(struct vdpau_picture_context *pic_ctx, av_unused const uint8_t *buffer, av_unused uint32_t size) { - struct vdpau_picture_context *pic_ctx = pic->hwaccel_picture_private; - pic_ctx->bitstream_buffers_allocated = 0; pic_ctx->bitstream_buffers_used = 0; pic_ctx->bitstream_buffers = NULL; @@ -71,9 +69,9 @@ int ff_vdpau_mpeg_end_frame(AVCodecContext *avctx) } #endif -int ff_vdpau_add_buffer(Picture *pic, const uint8_t *buf, uint32_t size) +int ff_vdpau_add_buffer(struct vdpau_picture_context *pic_ctx, + const uint8_t *buf, uint32_t size) { - struct vdpau_picture_context *pic_ctx = pic->hwaccel_picture_private; VdpBitstreamBuffer *buffers = pic_ctx->bitstream_buffers; buffers = av_fast_realloc(buffers, &pic_ctx->bitstream_buffers_allocated,