init to 0, fix warning: mpegenc.c:1022: warning: 'avail_space' may be used uninitiali...
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 31 Jan 2008 00:27:51 +0000 (00:27 +0000)
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>
Thu, 31 Jan 2008 00:27:51 +0000 (00:27 +0000)
Originally committed as revision 11683 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/mpegenc.c

index 83a628a..0558226 100644 (file)
@@ -1019,7 +1019,7 @@ static int output_packet(AVFormatContext *ctx, int flush){
     MpegMuxContext *s = ctx->priv_data;
     AVStream *st;
     StreamInfo *stream;
     MpegMuxContext *s = ctx->priv_data;
     AVStream *st;
     StreamInfo *stream;
-    int i, avail_space, es_size, trailer_size;
+    int i, avail_space=0, es_size, trailer_size;
     int best_i= -1;
     int best_score= INT_MIN;
     int ignore_constraints=0;
     int best_i= -1;
     int best_score= INT_MIN;
     int ignore_constraints=0;