Commit f46d2f98 authored by Michael Smith's avatar Michael Smith

Free output filename when autogenerated, as reported on-list.

Initialise some variables to avoid warnings.

svn path=/trunk/vorbis-tools/; revision=11532
parent b1518293
......@@ -226,7 +226,7 @@ static int decode_file(FILE *in, FILE *out, char *infile, char *outfile)
int ret;
ogg_int64_t length = 0;
ogg_int64_t done = 0;
int size;
int size = 0;
int seekable = 0;
int percent = 0;
int channels;
......@@ -243,7 +243,7 @@ static int decode_file(FILE *in, FILE *out, char *infile, char *outfile)
if(ov_seekable(&vf)) {
int link;
int chainsallowed;
int chainsallowed = 0;
for(link = 0; link < ov_streams(&vf); link++) {
if(ov_info(&vf, link)->channels == channels &&
ov_info(&vf, link)->rate == samplerate)
......@@ -419,6 +419,9 @@ int main(int argc, char **argv)
return 1;
}
if(!outfilename)
free(out);
fclose(outfile);
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment