prevent segfault when passed no arguments

Originally committed as revision 1558 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Philip Gladstone committed 2003-02-09 00:11:42 +00:00
1 parent c40c34828a
commit 4be3147d0d
1 file changed
+1 -1
+1 -1
View 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;