1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 04:42:10 +00:00

vo_opengl: add printf format checking to pass_describe()

This commit is contained in:
wm4 2017-07-22 22:08:23 +02:00
parent 95885bbaa2
commit 87e9cd13aa

View File

@ -989,6 +989,7 @@ static void pass_record(struct gl_video *p, struct mp_pass_perf perf)
p->pass_idx++;
}
PRINTF_ATTRIBUTE(2, 3)
static void pass_describe(struct gl_video *p, const char *textf, ...)
{
if (!p->pass || p->pass_idx == PASS_INFO_MAX)