[xiph-cvs] cvs commit: ogg/src bitwise.c

Monty xiphmont at xiph.org
Mon Nov 10 05:06:09 PST 2003



xiphmont    03/11/10 08:06:09

  Modified:    src      bitwise.c
  Log:
  Temporary fix to bitwise.c bigendian null-bit read calls.  The fix is
  fine, I want to find something slightly more elegant.

Revision  Changes    Path
1.17      +3 -3      ogg/src/bitwise.c

Index: bitwise.c
===================================================================
RCS file: /usr/local/cvsroot/ogg/src/bitwise.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- bitwise.c	8 Oct 2003 02:53:40 -0000	1.16
+++ bitwise.c	10 Nov 2003 13:06:08 -0000	1.17
@@ -11,7 +11,7 @@
  ********************************************************************
 
   function: packing variable sized words into an octet stream
-  last mod: $Id: bitwise.c,v 1.16 2003/10/08 02:53:40 xiphmont Exp $
+  last mod: $Id: bitwise.c,v 1.17 2003/11/10 13:06:08 xiphmont Exp $
 
  ********************************************************************/
 
@@ -272,7 +272,7 @@
       }
     }
   }
-  return(ret>>m);
+  return (ret>>(m>>1))>>((m+1)>>1);
 }
 
 long oggpack_look1(oggpack_buffer *b){
@@ -369,7 +369,7 @@
       }
     }
   }
-  ret>>=m;
+  ret=(ret>>(m>>1))>>((m+1)>>1);
   
  overflow:
 

<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