OSDN Git Service

prevent segfault when passed no arguments
authorPhilip Gladstone <philipjsg@users.sourceforge.net>
Sun, 9 Feb 2003 00:11:42 +0000 (00:11 +0000)
committerPhilip Gladstone <philipjsg@users.sourceforge.net>
Sun, 9 Feb 2003 00:11:42 +0000 (00:11 +0000)
Originally committed as revision 1558 to svn://svn.ffmpeg.org/ffmpeg/trunk

vhook/imlib2.c

index 64b1bae..6c6707b 100644 (file)
@@ -249,7 +249,7 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width,
             }
         }
 
-        strftime(buff, sizeof(buff), tbp, localtime(&now));
+        strftime(buff, sizeof(buff), tbp ? tbp : "[No data]", localtime(&now));
 
         x = ci->x;
         y = ci->y;