[xiph-cvs] cvs commit: theora/lib encode.c

Arc arc at xiph.org
Thu Feb 5 00:00:32 PST 2004



arc         04/02/05 03:00:26

  Modified:    lib      encode.c
  Log:
  bug reported (with one line fix) by Andrej Vakrcka <ander at cauldron.sk>

Revision  Changes    Path
1.17      +2 -1      theora/lib/encode.c

Index: encode.c
===================================================================
RCS file: /usr/local/cvsroot/theora/lib/encode.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- encode.c	6 Dec 2003 18:06:20 -0000	1.16
+++ encode.c	5 Feb 2004 08:00:21 -0000	1.17
@@ -11,7 +11,7 @@
  ********************************************************************
 
   function:
-  last mod: $Id: encode.c,v 1.16 2003/12/06 18:06:20 arc Exp $
+  last mod: $Id: encode.c,v 1.17 2004/02/05 08:00:21 arc Exp $
 
  ********************************************************************/
 
@@ -289,6 +289,7 @@
   /* Order the modes from most to least frequent.  Store result as
      scheme 0 */
   for ( j = 0; j < MAX_MODES; j++ ) {
+    TmpFreq = -1;  /* need to re-initialize for each loop */
     /* Find the most frequent */
     for ( i = 0; i < MAX_MODES; i++ ) {
       /* Is this the best scheme so far ??? */

<p><p>--- >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