[xiph-commits] r10710 - trunk/Tremor
giles at svn.xiph.org
giles at svn.xiph.org
Sun Jan 8 18:10:05 PST 2006
Author: giles
Date: 2006-01-08 18:10:04 -0800 (Sun, 08 Jan 2006)
New Revision: 10710
Modified:
trunk/Tremor/bitwise.c
trunk/Tremor/sharedbook.c
trunk/Tremor/vorbisfile.c
Log:
Suppress some (spurious) uninitialized variable warnings.
Modified: trunk/Tremor/bitwise.c
===================================================================
--- trunk/Tremor/bitwise.c 2006-01-09 01:56:50 UTC (rev 10709)
+++ trunk/Tremor/bitwise.c 2006-01-09 02:10:04 UTC (rev 10710)
@@ -81,7 +81,7 @@
/* Read in bits without advancing the bitptr; bits <= 32 */
long oggpack_look(oggpack_buffer *b,int bits){
unsigned long m=mask[bits];
- unsigned long ret;
+ unsigned long ret=-1;
bits+=b->headbit;
@@ -175,7 +175,7 @@
/* bits <= 32 */
long oggpack_read(oggpack_buffer *b,int bits){
unsigned long m=mask[bits];
- ogg_uint32_t ret;
+ ogg_uint32_t ret=-1;
bits+=b->headbit;
Modified: trunk/Tremor/sharedbook.c
===================================================================
--- trunk/Tremor/sharedbook.c 2006-01-09 01:56:50 UTC (rev 10709)
+++ trunk/Tremor/sharedbook.c 2006-01-09 02:10:04 UTC (rev 10710)
@@ -210,7 +210,7 @@
int indexdiv=1;
for(k=0;k<b->dim;k++){
int index= (j/indexdiv)%quantvals;
- int point;
+ int point=0;
int val=VFLOAT_MULTI(delta,delpoint,
abs(b->quantlist[index]),&point);
@@ -244,7 +244,7 @@
int lastpoint=0;
for(k=0;k<b->dim;k++){
- int point;
+ int point=0;
int val=VFLOAT_MULTI(delta,delpoint,
abs(b->quantlist[j*b->dim+k]),&point);
Modified: trunk/Tremor/vorbisfile.c
===================================================================
--- trunk/Tremor/vorbisfile.c 2006-01-09 01:56:50 UTC (rev 10709)
+++ trunk/Tremor/vorbisfile.c 2006-01-09 02:10:04 UTC (rev 10710)
@@ -987,7 +987,7 @@
int lastblock=0;
int accblock=0;
int thisblock;
- int eosflag;
+ int eosflag=0;
work_os=ogg_stream_create(vf->current_serialno); /* get the memory ready */
while(1){
More information about the commits
mailing list