Mercurial > libavformat.hg
changeset 2990:905bf0c5da8c libavformat
init to 0, fix warning: mpegenc.c:1022: warning: 'avail_space' may be used uninitialized in this function
author | bcoudurier |
---|---|
date | Thu, 31 Jan 2008 00:27:51 +0000 |
parents | c75acc216f3f |
children | 4591452ec78c |
files | mpegenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mpegenc.c Thu Jan 31 00:25:40 2008 +0000 +++ b/mpegenc.c Thu Jan 31 00:27:51 2008 +0000 @@ -1019,7 +1019,7 @@ 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;