[FFmpeg-cvslog] r9522 - trunk/libavformat/amr.c

Benoit Fouet benoit.fouet
Mon Jul 9 09:19:56 CEST 2007


mru wrote:
> Author: mru
> Date: Sat Jul  7 15:46:30 2007
> New Revision: 9522
>
> Log:
> kill uninitialised variable warning in amr_read_packet()
>
>
> Modified:
>    trunk/libavformat/amr.c
>
> Modified: trunk/libavformat/amr.c
> ==============================================================================
> --- trunk/libavformat/amr.c	(original)
> +++ trunk/libavformat/amr.c	Sat Jul  7 15:46:30 2007
> @@ -118,7 +118,7 @@ static int amr_read_packet(AVFormatConte
>                            AVPacket *pkt)
>  {
>      AVCodecContext *enc = s->streams[0]->codec;
> -    int read, size, toc, mode;
> +    int read, size = 0, toc, mode;
>  
>   

it could have been done later in the code, after checking codec_id, no ?
anyway, this is not critical i guess...

-- 
Ben
Purple Labs S.A.
www.purplelabs.com




More information about the ffmpeg-cvslog mailing list