Commit a534f5ad authored by philipjsg's avatar philipjsg

prevent segfault when passed no arguments


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@1558 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 4ae9741a
......@@ -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