Re: [FFmpeg-devel] [PATCH] avutil/opt: handle whole range of int64_t in av_opt_get_int

2021-11-10 Thread Michael Niedermayer
On Wed, Nov 10, 2021 at 08:46:26PM +0800, Zhao Zhili wrote: > Make get_int/set_int symetric. The int64_t to double to int64_t > conversion is unprecise for large value. > --- > libavutil/opt.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/libavutil/opt.c b/libavutil

[FFmpeg-devel] [PATCH] avutil/opt: handle whole range of int64_t in av_opt_get_int

2021-11-10 Thread Zhao Zhili
Make get_int/set_int symetric. The int64_t to double to int64_t conversion is unprecise for large value. --- libavutil/opt.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavutil/opt.c b/libavutil/opt.c index c7001dbcd3..b2be63828d 100644 --- a/libavutil/opt.c +++ b/lib