summaryrefslogtreecommitdiff
path: root/libavformat/matroskaenc.c
diff options
context:
space:
mode:
authorDavid Conrad <lessen42@gmail.com>2007-09-05 00:22:58 +0000
committerDavid Conrad <lessen42@gmail.com>2007-09-05 00:22:58 +0000
commit6d50a935c9d9b27214da22db4ef44da28151bf93 (patch)
treee95f45f93aa8ac90cb44f59eff65850a79bd71f4 /libavformat/matroskaenc.c
parent89e81bbbb96f8ac1a942a014be1377628279f9ad (diff)
Fix writing Xiph header sizes
Originally committed as revision 10305 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r--libavformat/matroskaenc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 7f0c6637a0..e13be953b2 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -191,7 +191,7 @@ static int mkv_write_header(AVFormatContext *s)
for (j = 0; j < 2; j++) {
for (k = 0; k < header_len[j] / 255; k++)
put_byte(pb, 255);
- put_byte(pb, header_len[j]);
+ put_byte(pb, header_len[j] % 255);
}
for (j = 0; j < 3; j++)
put_buffer(pb, header_start[j], header_len[j]);