[FFmpeg-cvslog] r11512 - trunk/libavformat/matroskaenc.c

michael subversion
Sat Jan 12 01:15:06 CET 2008


Author: michael
Date: Sat Jan 12 01:15:05 2008
New Revision: 11512

Log:
Write 0 instead of seeking forward (and leaving bytes uninitalized),
fixes odd regression test failure i had.


Modified:
   trunk/libavformat/matroskaenc.c

Modified: trunk/libavformat/matroskaenc.c
==============================================================================
--- trunk/libavformat/matroskaenc.c	(original)
+++ trunk/libavformat/matroskaenc.c	Sat Jan 12 01:15:05 2008
@@ -197,7 +197,8 @@ static void put_ebml_void(ByteIOContext 
         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)




More information about the ffmpeg-cvslog mailing list