]> rtime.felk.cvut.cz Git - frescor/ffmpeg.git/commitdiff
Write 0 instead of seeking forward (and leaving bytes uninitalized),
authormichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 12 Jan 2008 00:15:05 +0000 (00:15 +0000)
committermichael <michael@9553f0bf-9b14-0410-a0b8-cfaf0461ba5b>
Sat, 12 Jan 2008 00:15:05 +0000 (00:15 +0000)
fixes odd regression test failure i had.

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@11512 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b

libavformat/matroskaenc.c

index 5027d739b08bb1b6269e91c8e02dff8c1c647165..2c1f542e1fd665257016e45d7a3200c6b9e97299 100644 (file)
@@ -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)