From df3d17c58bd8127227ddc881050554e2711ca81f Mon Sep 17 00:00:00 2001 From: Monty Date: Fri, 4 Jun 2010 05:39:45 +0000 Subject: Correct packet accumulation in _packetout to accumulate a full long of bytes, mathing the ogg_packet declaration. git-svn-id: http://svn.xiph.org/trunk/ogg@17269 0101bb08-14d6-0310-b084-bc0e0c8e3800 --- src/framing.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/framing.c b/src/framing.c index 464c1a0..37e06da 100644 --- a/src/framing.c +++ b/src/framing.c @@ -972,7 +972,7 @@ static int _packetout(ogg_stream_state *os,ogg_packet *op,int adv){ /* Gather the whole packet. We'll have no holes or a partial packet */ { int size=os->lacing_vals[ptr]&0xff; - int bytes=size; + long bytes=size; int eos=os->lacing_vals[ptr]&0x200; /* last packet of the stream? */ int bos=os->lacing_vals[ptr]&0x100; /* first packet of the stream? */ -- cgit v1.2.1