[xiph-commits] r9535 - trunk/theora/lib
giles at svn.xiph.org
giles at svn.xiph.org
Tue Jun 28 06:47:30 PDT 2005
Author: giles
Date: 2005-06-28 06:47:25 -0700 (Tue, 28 Jun 2005)
New Revision: 9535
Modified:
trunk/theora/lib/toplevel.c
Log:
Fix a type-aliasing warning.
Modified: trunk/theora/lib/toplevel.c
===================================================================
--- trunk/theora/lib/toplevel.c 2005-06-28 11:33:57 UTC (rev 9534)
+++ trunk/theora/lib/toplevel.c 2005-06-28 13:47:25 UTC (rev 9535)
@@ -164,9 +164,9 @@
static int _theora_unpack_comment(theora_comment *tc, oggpack_buffer *opb){
int i;
- int len;
+ long len;
- _tp_readlsbint(opb,(long *) &len);
+ _tp_readlsbint(opb,&len);
if(len<0)return(OC_BADHEADER);
tc->vendor=_ogg_calloc(1,len+1);
_tp_readbuffer(opb,tc->vendor, len);
@@ -177,7 +177,7 @@
tc->user_comments=_ogg_calloc(tc->comments,sizeof(*tc->user_comments));
tc->comment_lengths=_ogg_calloc(tc->comments,sizeof(*tc->comment_lengths));
for(i=0;i<tc->comments;i++){
- _tp_readlsbint(opb,(long *)&len);
+ _tp_readlsbint(opb,&len);
if(len<0)goto parse_err;
tc->user_comments[i]=_ogg_calloc(1,len+1);
_tp_readbuffer(opb,tc->user_comments[i],len);
More information about the commits
mailing list