#3407: tiff/geotiff support : number precision is not sufficient in double to
string conversion
-------------------------------------+-------------------------------------
Reporter: LeRatier | Type:
Status: new | enhancement
Component: avcodec | Priority: normal
Keywords: tiff, | Version: git-
geotiff | master
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
In libavcodec/tiff.c, the double values of the GEOTIFF format are
converted to string thru the double2str() function.
This function is truncating double to 6 digits (ie the printf("%f")
default), leading to critical precision loss when using the result on the
decoder side
An easy patch would be to modify the "%f%s" of the snprintf in a
"%.15g%s" for example.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/3407>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
_______________________________________________
FFmpeg-trac mailing list
[email protected]
http://avcodec.org/mailman/listinfo/ffmpeg-trac