[SCM] libav/experimental: Fix writing Xiph header sizes
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Jun 30 16:06:21 UTC 2013
The following commit has been merged in the experimental branch:
commit 6d50a935c9d9b27214da22db4ef44da28151bf93
Author: David Conrad <lessen42 at gmail.com>
Date: Wed Sep 5 00:22:58 2007 +0000
Fix writing Xiph header sizes
Originally committed as revision 10305 to svn://svn.ffmpeg.org/ffmpeg/trunk
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 7f0c663..e13be95 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]);
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list