# HG changeset patch # User gb # Date 1237550698 0 # Node ID 7b62de9c383d302439517fa24c6c70886fc9638c # Parent ea0e5e9a520f6fc4fbf19a5a469c510ba96b5cda Rename hwaccel_data_private to hwaccel_picture_private. diff -r ea0e5e9a520f -r 7b62de9c383d avcodec.h --- a/avcodec.h Fri Mar 20 11:48:27 2009 +0000 +++ b/avcodec.h Fri Mar 20 12:04:58 2009 +0000 @@ -814,7 +814,7 @@ * - encoding: unused\ * - decoding: Set by libavcodec\ */\ - void *hwaccel_data_private;\ + void *hwaccel_picture_private;\ #define FF_QSCALE_TYPE_MPEG1 0 diff -r ea0e5e9a520f -r 7b62de9c383d mpegvideo.c --- a/mpegvideo.c Fri Mar 20 11:48:27 2009 +0000 +++ b/mpegvideo.c Fri Mar 20 12:04:58 2009 +0000 @@ -170,7 +170,7 @@ static void free_frame_buffer(MpegEncContext *s, Picture *pic) { s->avctx->release_buffer(s->avctx, (AVFrame*)pic); - av_freep(&pic->hwaccel_data_private); + av_freep(&pic->hwaccel_picture_private); } /** @@ -181,10 +181,10 @@ int r; if (s->avctx->hwaccel) { - assert(!pic->hwaccel_data_private); + assert(!pic->hwaccel_picture_private); if (s->avctx->hwaccel->priv_data_size) { - pic->hwaccel_data_private = av_mallocz(s->avctx->hwaccel->priv_data_size); - if (!pic->hwaccel_data_private) { + pic->hwaccel_picture_private = av_mallocz(s->avctx->hwaccel->priv_data_size); + if (!pic->hwaccel_picture_private) { av_log(s->avctx, AV_LOG_ERROR, "alloc_frame_buffer() failed (hwaccel private data allocation)\n"); return -1; } @@ -195,7 +195,7 @@ if (r<0 || !pic->age || !pic->type || !pic->data[0]) { av_log(s->avctx, AV_LOG_ERROR, "get_buffer() failed (%d %d %d %p)\n", r, pic->age, pic->type, pic->data[0]); - av_freep(&pic->hwaccel_data_private); + av_freep(&pic->hwaccel_picture_private); return -1; }