Commit a323a9c5 authored by Michael Smith's avatar Michael Smith

Fix crash, = != ==

svn path=/trunk/vorbis-tools/; revision=11514
parent e49bd0ec
......@@ -245,7 +245,7 @@ static int decode_file(FILE *in, FILE *out, char *infile, char *outfile)
int link;
int chainsallowed;
for(link = 0; link < ov_streams(&vf); link++) {
if(ov_info(&vf, link)->channels = channels &&
if(ov_info(&vf, link)->channels == channels &&
ov_info(&vf, link)->rate == samplerate)
{
chainsallowed = 1;
......@@ -257,6 +257,7 @@ static int decode_file(FILE *in, FILE *out, char *infile, char *outfile)
length = ov_pcm_total(&vf, -1);
else
length = ov_pcm_total(&vf, 0);
fprintf(stderr, "Samples: %lld\n", length);
size = bits/8 * channels;
if(!quiet)
fprintf(stderr, "Decoding \"%s\" to \"%s\"\n",
......
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