[FFmpeg-cvslog] r18071 - in trunk/libavcodec: avcodec.h mpegvideo.c

gb subversion
Fri Mar 20 13:04:58 CET 2009


Author: gb
Date: Fri Mar 20 13:04:58 2009
New Revision: 18071

Log:
Rename hwaccel_data_private to hwaccel_picture_private.

Modified:
   trunk/libavcodec/avcodec.h
   trunk/libavcodec/mpegvideo.c

Modified: trunk/libavcodec/avcodec.h
==============================================================================
--- trunk/libavcodec/avcodec.h	Fri Mar 20 12:48:27 2009	(r18070)
+++ trunk/libavcodec/avcodec.h	Fri Mar 20 13:04:58 2009	(r18071)
@@ -814,7 +814,7 @@ typedef struct AVPanScan{
      * - encoding: unused\
      * - decoding: Set by libavcodec\
      */\
-    void *hwaccel_data_private;\
+    void *hwaccel_picture_private;\
 
 
 #define FF_QSCALE_TYPE_MPEG1 0

Modified: trunk/libavcodec/mpegvideo.c
==============================================================================
--- trunk/libavcodec/mpegvideo.c	Fri Mar 20 12:48:27 2009	(r18070)
+++ trunk/libavcodec/mpegvideo.c	Fri Mar 20 13:04:58 2009	(r18071)
@@ -170,7 +170,7 @@ void ff_copy_picture(Picture *dst, Pictu
 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 @@ static int alloc_frame_buffer(MpegEncCon
     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 @@ static int alloc_frame_buffer(MpegEncCon
 
     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;
     }
 




More information about the ffmpeg-cvslog mailing list