summaryrefslogtreecommitdiff
path: root/libavformat/rm.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-12-06 21:38:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-12-06 21:38:05 +0000
commit80016c48b07fac94f0bf3470a7322c2a022256a0 (patch)
tree26570e3dc7b2fff86e6b03fd0df4e1ad69ee8e16 /libavformat/rm.c
parent012cd15fc4af505c659f1852594d52cd029363c6 (diff)
rm encoding fix
Originally committed as revision 3736 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/rm.c')
-rw-r--r--libavformat/rm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libavformat/rm.c b/libavformat/rm.c
index 45cc170cd6..6dea24ce9f 100644
--- a/libavformat/rm.c
+++ b/libavformat/rm.c
@@ -373,13 +373,13 @@ static int rm_write_video(AVFormatContext *s, const uint8_t *buf, int size, int
} 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);