]> git.sesse.net Git - ffmpeg/commit
lavu/opt: enhance printing durations.
authorNicolas George <george@nsup.org>
Mon, 26 Oct 2015 20:07:33 +0000 (21:07 +0100)
committerNicolas George <george@nsup.org>
Sat, 7 Nov 2015 15:04:09 +0000 (16:04 +0100)
commit47ea04ff1058cfd9cf780ad27eae5260a2a84353
treea0d8785aa18aaf0101c4cf8938ed3aac1abda586
parent7037f9430b6223ec74080ecb2e58b25426f5f47d
lavu/opt: enhance printing durations.

Trim unneeded leading components and trailing zeros.
Move the formating code in a separate function.
Use the function also to format the default value, it was currently
printed as plain integer, inconsistent to the way it is parsed.
libavutil/opt.c
tests/ref/fate/opt