Commit 7ef8ba9e authored by Arc Riley's avatar Arc Riley
Browse files

Simple fix; two lines needed to be switched so that the pointer
og.header points to something before it's used in ogg_page_pageno(&og);

Backtrace:
#0  oggbyte_init (b=0xbfbff71c, or=0x4, bs=0x0) at bytewise.c:90
#1  0x281c7557 in ogg_page_pageno (og=0xbfbff71c) at sync.c:68
#2  0x281c7b2b in _span_queued_page (os=0x8101100) at stream.c:296
#3  0x281c7ed1 in _packetout (os=0x8101100, op=0x8155160, adv=1)
    at stream.c:437
#4  0x281c814b in ogg_stream_packetout (os=0x8101100, op=0x8155160)
    at stream.c:511

svn path=/branches/libogg2-zerocopy/ogg/; revision=5656
parent 9cf093a8
......@@ -12,7 +12,7 @@
function: code raw packets into framed Ogg logical stream and
decode Ogg logical streams back into raw packets
last mod: $Id: stream.c,v 1.1.2.13 2003/08/15 20:31:57 xiphmont Exp $
last mod: $Id: stream.c,v 1.1.2.14 2003/11/30 15:56:32 arc Exp $
********************************************************************/
......@@ -293,8 +293,8 @@ static void _span_queued_page(ogg_stream_state *os){
long pageno;
oggbyte_buffer ob;
pageno=ogg_page_pageno(&og);
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment