[FFmpeg-soc] [soc]: r293 - libavfilter/avfilter.c

Aurelien Jacobs aurel at gnuage.org
Mon Jul 2 15:41:04 CEST 2007


On Sat, 30 Jun 2007 19:11:22 +0200 (CEST)
koorogi <subversion at mplayerhq.hu> wrote:

> Author: koorogi
> Date: Sat Jun 30 19:11:22 2007
> New Revision: 293
> 
> Log:
> typo
> 
> 
> Modified:
>    libavfilter/avfilter.c
> 
> Modified: libavfilter/avfilter.c
> ==============================================================================
> --- libavfilter/avfilter.c	(original)
> +++ libavfilter/avfilter.c	Sat Jun 30 19:11:22 2007
> @@ -56,7 +56,7 @@ AVFilterPicRef *avfilter_default_get_vid
>      avpicture_alloc((AVPicture *)pic, pic->format, ref->w, ref->h);
>  
>      memcpy(ref->data, pic->data, sizeof(uint8_t *) * 4);
> -    memcpy(ref->linesize, pic->linesize, sizeof(int *) * 4);
> +    memcpy(ref->linesize, pic->linesize, sizeof(int) * 4);

You should replace sizeof(int)*4 simply by sizeof(ref->linesize).
(same applies to sizeof(ref->data).

Aurel



More information about the FFmpeg-soc mailing list