[FFmpeg-devel] [PATCH] Add hwaccel_data infrastructure (take 3)

Gwenole Beauchesne gbeauchesne
Fri Mar 6 11:24:00 CET 2009


On Fri, 6 Mar 2009, Benoit Fouet wrote:

>> Besides, I also dropped hwaccel_data, it's not a real gain. I am fine
>> with AVFrame.data[3].
>>
>> New patch attached.
>
>> diff --git a/libavcodec/mpegvideo.c b/libavcodec/mpegvideo.c
>> index 43f2f1f..7739f64 100644
>> --- a/libavcodec/mpegvideo.c
>> +++ b/libavcodec/mpegvideo.c
>> @@ -170,6 +171,11 @@ void ff_copy_picture(Picture *dst, Picture *src){
>>  static void free_frame_buffer(MpegEncContext *s, Picture *pic)
>>  {
>>      s->avctx->release_buffer(s->avctx, (AVFrame*)pic);
>> +
>> +    if (pic->hwaccel_data_private) {
>> +        av_free(pic->hwaccel_data_private);
>> +        pic->hwaccel_data_private = NULL;
>> +    }
>>  }
>>
>
> av_freep(&pic->hwaccel_data_private);

New patch attached. Thanks.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.hwaccel.data.private.2.patch
Type: text/x-diff
Size: 2249 bytes
Desc: 
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090306/406f62f0/attachment.patch>



More information about the ffmpeg-devel mailing list