[FFmpeg-devel] [PATCH][VAAPI][2/6] Add common data structures and helpers (take 13)

Gwenole Beauchesne gbeauchesne
Thu Mar 19 17:02:01 CET 2009


Le 18 mars 09 ? 19:37, Michael Niedermayer a ?crit :

> [...]
>> +static int render_picture(AVCodecContext *avctx, Picture *pic)
>> +{
>> +    const struct vaapi_context * const va_context = avctx- 
>> >hwaccel_context;
>> +    struct vaapi_picture_private * const pp = pic- 
>> >hwaccel_data_private;
>> +    VABufferID va_buffers[3];
>> +    unsigned int n_va_buffers = 0;
>> +
>> +    if (pp->n_slice_buf_ids == 0)
>> +        return -1;
>
> the only point from where this is called checks n_slice_buf_ids > 0  
> before

Dropped. New patch attached to also fix memory leak, cosmetics (docs,  
renaming).
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ffmpeg.hwaccel.vaapi.common.13.patch
Type: application/octet-stream
Size: 13453 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/attachments/20090319/75f7a998/attachment.obj>
-------------- next part --------------




More information about the ffmpeg-devel mailing list