Commit 4be3147d authored by Philip Gladstone's avatar Philip Gladstone
Browse files

prevent segfault when passed no arguments

Originally committed as revision 1558 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent c40c3482
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment