From febc8fad0c49bcbcfbdc07af4a04e2e9abec7c61 Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Thu, 31 Jan 2008 00:27:51 +0000 Subject: [PATCH] init to 0, fix warning: mpegenc.c:1022: warning: 'avail_space' may be used uninitialized in this function Originally committed as revision 11683 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/mpegenc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/mpegenc.c b/libavformat/mpegenc.c index 83a628a5fb..0558226b82 100644 --- a/libavformat/mpegenc.c +++ b/libavformat/mpegenc.c @@ -1019,7 +1019,7 @@ static int output_packet(AVFormatContext *ctx, int flush){ 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;