kill uninitialised variable warning in amr_read_packet()
authorMåns Rullgård <mans@mansr.com>
Sat, 7 Jul 2007 13:46:30 +0000 (13:46 +0000)
committerMåns Rullgård <mans@mansr.com>
Sat, 7 Jul 2007 13:46:30 +0000 (13:46 +0000)
Originally committed as revision 9522 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/amr.c

index 92223ed..6d70aad 100644 (file)
@@ -118,7 +118,7 @@ static int amr_read_packet(AVFormatContext *s,
                           AVPacket *pkt)
 {
     AVCodecContext *enc = s->streams[0]->codec;
-    int read, size, toc, mode;
+    int read, size = 0, toc, mode;
 
     if (url_feof(&s->pb))
     {