aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilip Gladstone <philipjsg@users.sourceforge.net>2003-02-09 00:11:42 +0000
committerPhilip Gladstone <philipjsg@users.sourceforge.net>2003-02-09 00:11:42 +0000
commit4be3147d0d2858ae5a242af2f86de3a810a9db77 (patch)
tree5e648c75a154407e4a940e3f981cc7cbae61d53b
parentc40c34828a1dc775225bdd7b0d6f04cc24deaa7a (diff)
downloadffmpeg-4be3147d0d2858ae5a242af2f86de3a810a9db77.tar.gz
prevent segfault when passed no arguments
Originally committed as revision 1558 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--vhook/imlib2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vhook/imlib2.c b/vhook/imlib2.c
index 64b1bae687..6c6707b78b 100644
--- a/vhook/imlib2.c
+++ b/vhook/imlib2.c
@@ -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;