avutil/opt: Fix printing integer option defaults
authorSoft Works <softworkz@hotmail.com>
Tue, 17 Sep 2019 01:36:33 +0000 (01:36 +0000)
committerMichael Niedermayer <michael@niedermayer.cc>
Fri, 20 Sep 2019 21:26:34 +0000 (23:26 +0200)
commit667df60b14745d5c43e6da09fa2ec64eed4eab5b
treedad13b18cf8ed30fef2c90f36cbe578698a6e858
parent2f289ec914cc7e8133858d4f9e8d91dab685ae44
avutil/opt: Fix printing integer option defaults

Integer values should not be printed using format specifier '%g' which leads to inexact display in case of higher values.

Before this patch:
  -trans_color       <int>        .D.V..... color value [...] (default 1.67772e+07)

Afterwards:
  -trans_color       <int>        .D.V..... color value [...] (default 16777215)

Signed-off-by: softworkz <softworkz@hotmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/opt.c