av_find_stream_info: initialize ret
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Jul 2013 13:00:28 +0000 (15:00 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 2 Jul 2013 13:07:44 +0000 (15:07 +0200)
This should fix hypothetical corner cases where it might have never been initialized before use

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/utils.c

index 1f59b31..af2f967 100644 (file)
@@ -2621,7 +2621,7 @@ int av_find_stream_info(AVFormatContext *ic)
 
 int avformat_find_stream_info(AVFormatContext *ic, AVDictionary **options)
 {
-    int i, count, ret, j;
+    int i, count, ret = 0, j;
     int64_t read_size;
     AVStream *st;
     AVPacket pkt1, *pkt;