summaryrefslogtreecommitdiff
path: root/libavformat/matroskaenc.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2008-01-12 00:15:05 +0000
committerMichael Niedermayer <michaelni@gmx.at>2008-01-12 00:15:05 +0000
commit2024c2262b16acdb7fec850766ad06bd494355f7 (patch)
tree3d4ecc0896cc29dcfb1c1df26fcd9c5c2ebe62ea /libavformat/matroskaenc.c
parent9ab3f71b60f478cd3b54369b396a6e71cac83859 (diff)
Write 0 instead of seeking forward (and leaving bytes uninitalized),
fixes odd regression test failure i had. Originally committed as revision 11512 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/matroskaenc.c')
-rw-r--r--libavformat/matroskaenc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 5027d739b0..2c1f542e1f 100644
--- 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)