git.videolan.org
/
ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ab3f71
)
Write 0 instead of seeking forward (and leaving bytes uninitalized),
author
Michael Niedermayer
<michaelni@gmx.at>
Sat, 12 Jan 2008 00:15:05 +0000
(
00:15
+0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Sat, 12 Jan 2008 00:15:05 +0000
(
00:15
+0000)
fixes odd regression test failure i had.
Originally committed as revision 11512 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavformat/matroskaenc.c
patch
|
blob
|
history
diff --git
a/libavformat/matroskaenc.c
b/libavformat/matroskaenc.c
index
5027d73
..
2c1f542
100644
(file)
--- a/
libavformat/matroskaenc.c
+++ b/
libavformat/matroskaenc.c
@@
-197,7
+197,8
@@
static void put_ebml_void(ByteIOContext *pb, uint64_t size)
put_ebml_num(pb, size-1, 0);
else
put_ebml_num(pb, size-9, 8);
- url_fseek(pb, currentpos + size, SEEK_SET);
+ while(url_ftell(pb) < currentpos + size)
+ put_byte(pb, 0);
}
static ebml_master start_ebml_master(ByteIOContext *pb, unsigned int elementid, uint64_t expectedsize)