[xiph-commits] r11514 - trunk/vorbis-tools/oggdec

msmith at svn.xiph.org msmith at svn.xiph.org
Sun Jun 4 04:15:18 PDT 2006


Author: msmith
Date: 2006-06-04 04:15:15 -0700 (Sun, 04 Jun 2006)
New Revision: 11514

Modified:
   trunk/vorbis-tools/oggdec/oggdec.c
Log:
Fix crash, = != ==


Modified: trunk/vorbis-tools/oggdec/oggdec.c
===================================================================
--- trunk/vorbis-tools/oggdec/oggdec.c	2006-06-04 09:46:34 UTC (rev 11513)
+++ trunk/vorbis-tools/oggdec/oggdec.c	2006-06-04 11:15:15 UTC (rev 11514)
@@ -245,7 +245,7 @@
         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 @@
             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", 



More information about the commits mailing list