# HG changeset patch # User michael # Date 1102369085 0 # Node ID 8fcecf36e64c73ce3672de10481131f4afdfae01 # Parent 1ab7b989f475fe9687c4b2a5bb5d41dbf177f463 rm encoding fix diff -r 1ab7b989f475 -r 8fcecf36e64c rm.c --- a/rm.c Mon Dec 06 20:03:42 2004 +0000 +++ b/rm.c Mon Dec 06 21:38:05 2004 +0000 @@ -373,13 +373,13 @@ } else { put_byte(pb, 0x01); } - put_be16(pb, 0x4000 | (size)); /* total frame size */ - put_be16(pb, 0x4000 | (size)); /* offset from the start or the end */ + put_be16(pb, 0x4000 + (size)); /* total frame size */ + put_be16(pb, 0x4000 + (size)); /* offset from the start or the end */ #else /* full frame */ write_packet_header(s, size + 6); put_byte(pb, 0xc0); - put_be16(pb, 0x4000 | size); /* total frame size */ + put_be16(pb, 0x4000 + size); /* total frame size */ put_be16(pb, 0x4000 + packet_number * 126); /* position in stream */ #endif put_byte(pb, stream->nb_frames & 0xff);