common: add missing %f time format

It was documented for --screenshot-template, but apparently never
implemented.

This value is not explicitly rounded, other than for printf() %f default
formatting (which rounds to 6 digits).
This commit is contained in:
wm4 2018-04-30 19:28:37 +02:00 committed by Jan Ekström
parent 8f67fa13f1
commit 3c2d20e414
1 changed files with 1 additions and 0 deletions

View File

@ -72,6 +72,7 @@ char *mp_format_time_fmt(const char *fmt, double time)
case 's': appendf(&res, "%s%lld", sign, itime); break;
case 'S': appendf(&res, "%02lld", s); break;
case 'T': appendf(&res, "%03d", ms); break;
case 'f': appendf(&res, "%f", time); break;
case '%': appendf(&res, "%s", "%"); break;
default: goto error;
}