Commit 6d50a935 authored by David Conrad's avatar David Conrad

Fix writing Xiph header sizes

Originally committed as revision 10305 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent 89e81bbb
...@@ -191,7 +191,7 @@ static int mkv_write_header(AVFormatContext *s) ...@@ -191,7 +191,7 @@ static int mkv_write_header(AVFormatContext *s)
for (j = 0; j < 2; j++) { for (j = 0; j < 2; j++) {
for (k = 0; k < header_len[j] / 255; k++) for (k = 0; k < header_len[j] / 255; k++)
put_byte(pb, 255); put_byte(pb, 255);
put_byte(pb, header_len[j]); put_byte(pb, header_len[j] % 255);
} }
for (j = 0; j < 3; j++) for (j = 0; j < 3; j++)
put_buffer(pb, header_start[j], header_len[j]); put_buffer(pb, header_start[j], header_len[j]);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment