Carsten Haese
2003-Jul-22 13:59 UTC
[vorbis-dev] Patch to get libogg2 to build with gcc 2.96
Hi,
When I built libogg2 for testing the new vorbose utility, gcc 2.96
stumbled over a portion from stream.c that mixes variable declarations
with statements. The patch below fixes this.
-Carsten.
Index: stream.c
==================================================================RCS file:
/usr/local/cvsroot/ogg/src/Attic/stream.c,v
retrieving revision 1.1.2.12
diff -u -r1.1.2.12 stream.c
--- stream.c 29 Mar 2003 00:07:32 -0000 1.1.2.12
+++ stream.c 22 Jul 2003 20:51:09 -0000
@@ -290,9 +290,10 @@
/* process/prepare next page, if any */
ogg_page og; /* only for parsing header values */
- og.header=os->header_tail; /* only for parsing header values */
- long pageno=ogg_page_pageno(&og);
+ long pageno;
oggbyte_buffer ob;
+ og.header=os->header_tail; /* only for parsing header values */
+ pageno=ogg_page_pageno(&og);
oggbyte_init(&ob,os->header_tail,0);
os->lacing_fill=oggbyte_read1(&ob,26);
<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
'vorbis-dev-request@xiph.org'
containing only the word 'unsubscribe' in the body. No subject is
needed.
Unsubscribe messages sent to the list will be ignored/filtered.
Alan MacDonald
2003-Jul-22 14:25 UTC
[vorbis-dev] Patch to get libogg2 to build with gcc 2.96
Carsten Haese wrote:>When I built libogg2 for testing the new vorbose utility, gcc 2.96 > >Sorry if this has already been answered, but what does the new vorbose utility do? Alan <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 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.
On Tue, Jul 22, 2003 at 04:59:16PM -0400, Carsten Haese wrote:> Hi, > > When I built libogg2 for testing the new vorbose utility, gcc 2.96 > stumbled over a portion from stream.c that mixes variable declarations > with statements. The patch below fixes this.Committed. Monty --- >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 'vorbis-dev-request@xiph.org' containing only the word 'unsubscribe' in the body. No subject is needed. Unsubscribe messages sent to the list will be ignored/filtered.