diff options
author | Sylvain Fabre <sylvain@lahiette.com> | 2014-02-23 13:30:37 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-02-23 16:03:18 +0400 |
commit | 526049ce61d00ba889c6db8300930c086b3136ef (patch) | |
tree | bb569a7e0a69da7873f1cde44c5be3382a0a4b19 /libavcodec/tiff_common.c | |
parent | 02b63246cf7f2c38e83defdbba0647ad24be8369 (diff) |
Issue-#3407 : Enhance precision for double to string conversion, useful for GEOTIFF double values
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/tiff_common.c')
-rw-r--r-- | libavcodec/tiff_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavcodec/tiff_common.c b/libavcodec/tiff_common.c index 251af3d497..fc34087c6b 100644 --- a/libavcodec/tiff_common.c +++ b/libavcodec/tiff_common.c @@ -165,7 +165,7 @@ int ff_tadd_doubles_metadata(int count, const char *name, const char *sep, av_bprint_init(&bp, 10 * count, 100 * count); for (i = 0; i < count; i++) { - av_bprintf(&bp, "%s%f", auto_sep(count, sep, i, 4), ff_tget_double(gb, le)); + av_bprintf(&bp, "%s%.15g", auto_sep(count, sep, i, 4), ff_tget_double(gb, le)); } if ((i = av_bprint_finalize(&bp, &ap))) { |