[FFmpeg-cvslog] r24939 - trunk/libavcodec/a64multienc.c

Benoit Fouet benoit.fouet
Thu Aug 26 14:03:10 CEST 2010


On Thu, 26 Aug 2010 12:02:59 +0200 (CEST) bindhammer wrote:
> Author: bindhammer
> Date: Thu Aug 26 12:02:59 2010
> New Revision: 24939
> 
> Log:
> Setting proper values in extradata for future use in muxer
> 
> Modified:
>    trunk/libavcodec/a64multienc.c
> 
> Modified: trunk/libavcodec/a64multienc.c
> ==============================================================================
> --- trunk/libavcodec/a64multienc.c	Thu Aug 26 09:39:34 2010	(r24938)
> +++ trunk/libavcodec/a64multienc.c	Thu Aug 26 12:02:59 2010	(r24939)
> @@ -199,6 +199,12 @@ static av_cold int a64multi_init_encoder
>      c->mc_colram        = av_mallocz(CHARSET_CHARS * sizeof(uint8_t));
>      c->mc_charset       = av_malloc (0x800 * (INTERLACED+1) * sizeof(uint8_t));
>  
> +    /* set up extradata */
> +    avctx->extradata      = av_mallocz(8 * 4 + FF_INPUT_BUFFER_PADDING_SIZE);

you should verify the return value here, and in other malloc() cases.

-- 
Ben



More information about the ffmpeg-cvslog mailing list