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
pull/126/head
Baptiste Coudurier 17 years ago
parent 87be0d1289
commit febc8fad0c
  1. 2
      libavformat/mpegenc.c

@ -1019,7 +1019,7 @@ static int output_packet(AVFormatContext *ctx, int flush){
MpegMuxContext *s = ctx->priv_data; MpegMuxContext *s = ctx->priv_data;
AVStream *st; AVStream *st;
StreamInfo *stream; 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_i= -1;
int best_score= INT_MIN; int best_score= INT_MIN;
int ignore_constraints=0; int ignore_constraints=0;

Loading…
Cancel
Save