rawdec: initialize return value to 0.
authorAnton Khirnov <anton@khirnov.net>
Fri, 3 Jun 2011 11:40:54 +0000 (13:40 +0200)
committerAnton Khirnov <anton@khirnov.net>
Fri, 3 Jun 2011 11:51:43 +0000 (13:51 +0200)
libavformat/rawdec.c

index 87583e1..3d8125f 100644 (file)
@@ -70,7 +70,7 @@ int ff_raw_read_header(AVFormatContext *s, AVFormatParameters *ap)
             }
         case AVMEDIA_TYPE_VIDEO: {
             FFRawVideoDemuxerContext *s1 = s->priv_data;
-            int width = 0, height = 0, ret;
+            int width = 0, height = 0, ret = 0;
             enum PixelFormat pix_fmt;
 
             if(ap->time_base.num)