(ffmpeg_core.c) passing a format string without the arguments to log_cb

can result in a crash.
This commit is contained in:
aliaspider 2016-06-04 04:41:38 +01:00
parent 94e16e638d
commit 5e5e1e6d50

View File

@ -181,9 +181,14 @@ static struct
#ifdef HAVE_SSA
static void ass_msg_cb(int level, const char *fmt, va_list args, void *data)
{
char buffer[4096];
(void)data;
if (level < 6)
log_cb(RETRO_LOG_INFO, fmt);
{
vsnprintf(buffer, sizeof(buffer), fmt, args);
log_cb(RETRO_LOG_INFO, "%s\n", buffer);
}
}
#endif