aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/mpegenc.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-01-31 00:27:51 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2008-01-31 00:27:51 +0000
commitfebc8fad0c49bcbcfbdc07af4a04e2e9abec7c61 (patch)
tree577e64ee91f9e4ad561f6376b72e410e0594f582 /libavformat/mpegenc.c
parent87be0d1289c97db4fa4fc946316951236e9201ad (diff)
downloadffmpeg-febc8fad0c49bcbcfbdc07af4a04e2e9abec7c61.tar.gz
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
Diffstat (limited to 'libavformat/mpegenc.c')
-rw-r--r--libavformat/mpegenc.c2
1 files changed, 1 insertions, 1 deletions
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;