[FFmpeg-cvslog] rawdec: initialize return value to 0.

Anton Khirnov git at videolan.org
Sat Jun 4 06:39:58 CEST 2011


ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Fri Jun  3 13:40:54 2011 +0200| [1f94c31f69e6eb7eee80d0a3b42875261a18dcbe] | committer: Anton Khirnov

rawdec: initialize return value to 0.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=1f94c31f69e6eb7eee80d0a3b42875261a18dcbe
---

 libavformat/rawdec.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/libavformat/rawdec.c b/libavformat/rawdec.c
index 87583e1..3d8125f 100644
--- a/libavformat/rawdec.c
+++ b/libavformat/rawdec.c
@@ -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)



More information about the ffmpeg-cvslog mailing list