summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2003-11-10 13:06:08 +0000
committerMonty <xiphmont@xiph.org>2003-11-10 13:06:08 +0000
commitd33cda489c5e4712cd35e7cc78e5af523fb3c108 (patch)
tree3fbe47e862e32d61a7e489cd49f4ec81e825cc91 /src
parent53b6700bfa66bc4cb34f80184a181286b13cb78d (diff)
downloadogg-d33cda489c5e4712cd35e7cc78e5af523fb3c108.tar.gz
Temporary fix to bitwise.c bigendian null-bit read calls. The fix is
fine, I want to find something slightly more elegant. git-svn-id: http://svn.xiph.org/trunk/ogg@5550 0101bb08-14d6-0310-b084-bc0e0c8e3800
Diffstat (limited to 'src')
-rw-r--r--src/bitwise.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bitwise.c b/src/bitwise.c
index dcb26af..ec4d72b 100644
--- a/src/bitwise.c
+++ b/src/bitwise.c
@@ -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 @@ long oggpackB_look(oggpack_buffer *b,int bits){
}
}
}
- return(ret>>m);
+ return (ret>>(m>>1))>>((m+1)>>1);
}
long oggpack_look1(oggpack_buffer *b){
@@ -369,7 +369,7 @@ long oggpackB_read(oggpack_buffer *b,int bits){
}
}
}
- ret>>=m;
+ ret=(ret>>(m>>1))>>((m+1)>>1);
overflow: