[xiph-cvs] cvs commit: vorbis-tools/oggenc audio.c

Michael Smith msmith at xiph.org
Mon Dec 3 06:42:45 PST 2001



msmith      01/12/03 06:42:44

  Modified:    oggenc   audio.c
  Log:
  Really obscure bug fix - samplesize should be used instead of hardcoded to 2.

Revision  Changes    Path
1.17      +2 -2      vorbis-tools/oggenc/audio.c

Index: audio.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/oggenc/audio.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- audio.c	2001/09/15 11:56:10	1.16
+++ audio.c	2001/12/03 14:42:44	1.17
@@ -445,8 +445,8 @@
                         }
                         else
                         {
-				opt->total_samples_per_channel = (ftell(in) - pos)/(format.channels*2);
-				wav->totalsamples = len/(format.channels*2);
+				opt->total_samples_per_channel = (ftell(in) - pos)/(format.channels*samplesize);
+				wav->totalsamples = len/(format.channels*samplesize);
                                 fseek(in,pos, SEEK_SET);
                         }
                 }

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list