[Ffmpeg-cvslog] r5879 - trunk/libavformat/gxfenc.c

bcoudurier subversion
Tue Aug 1 12:00:13 CEST 2006


Author: bcoudurier
Date: Tue Aug  1 12:00:12 2006
New Revision: 5879

Modified:
   trunk/libavformat/gxfenc.c

Log:
negative to_pad won't provoke infinite loop

Modified: trunk/libavformat/gxfenc.c
==============================================================================
--- trunk/libavformat/gxfenc.c	(original)
+++ trunk/libavformat/gxfenc.c	Tue Aug  1 12:00:12 2006
@@ -117,7 +117,7 @@
 
 static void gxf_write_padding(ByteIOContext *pb, offset_t to_pad)
 {
-    while (to_pad--) {
+    for (; to_pad > 0; to_pad--) {
         put_byte(pb, 0);
     }
 }




More information about the ffmpeg-cvslog mailing list