changeset 2928:bdc992cb8e46 libavformat

Write 0 instead of seeking forward (and leaving bytes uninitalized), fixes odd regression test failure i had.
author michael
date Sat, 12 Jan 2008 00:15:05 +0000
parents b75a49790f31
children 67246a772057
files matroskaenc.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/matroskaenc.c	Fri Jan 11 23:33:32 2008 +0000
+++ b/matroskaenc.c	Sat Jan 12 00:15:05 2008 +0000
@@ -197,7 +197,8 @@
         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)