summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMonty <xiphmont@xiph.org>2010-06-04 05:39:45 +0000
committerMonty <xiphmont@xiph.org>2010-06-04 05:39:45 +0000
commite64842ca0c77b39fafc4522ba5c22618ab9e01c4 (patch)
tree3232e3f4bc33d80256bbaf8d6fdd4e6d2c8bd3eb /src
parent598fb9e78793a84fa8503ea5a18dbd1f38e068ff (diff)
downloadogg-git-e64842ca0c77b39fafc4522ba5c22618ab9e01c4.tar.gz
Correct packet accumulation in _packetout to accumulate a full long of bytes,
mathing the ogg_packet declaration. svn path=/trunk/ogg/; revision=17269
Diffstat (limited to 'src')
-rw-r--r--src/framing.c2
1 files changed, 1 insertions, 1 deletions
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? */