ffmpeg/libavutil
Ganesh Ajjanagadde 20a30077c3 avutil/mathematics: correct documentation for av_gcd
av_gcd is now always defined regardless of input. This documents this
change in the "documented API". Two benefits (closely related):
1. The function is robust, and there is no need to worry about INT64_MIN, etc.

2. Clients of av_gcd, like av_reduce, can now be made fully correct. Currently,
av_reduce can trigger undefined behavior if e.g num is INT64_MIN due to
integer overflow in the FFABS. Furthermore, this undefined behavior is
completely undocumented, and could be a fuzzer's paradise. The FFABS was needed in the past as
av_gcd was undefined for negative inputs. In order to make av_reduce
robust, it is essential to guarantee that av_gcd works for all int64_t.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
2015-10-30 13:42:04 -04:00
..
2015-10-28 04:23:14 -05:00
2014-04-07 01:31:02 +02:00
2015-10-28 09:38:21 -05:00
2015-08-19 16:15:13 +00:00
2015-08-22 10:07:05 -07:00
2014-08-05 01:54:47 +02:00
2015-10-28 04:23:14 -05:00
2015-10-28 04:23:14 -05:00
2014-07-12 22:33:27 +02:00
2014-07-12 22:33:27 +02:00
2014-04-29 13:24:11 +02:00
2015-09-05 18:07:20 +02:00
2015-09-05 18:07:20 +02:00
2015-10-11 18:03:10 -04:00
2014-11-08 11:31:11 +01:00
2014-10-11 12:15:26 +02:00
2015-10-16 19:53:55 -04:00
2013-05-13 21:42:37 +02:00
2015-10-17 01:16:50 -07:00
2014-08-05 21:05:52 +02:00
2015-05-26 18:31:53 +02:00
2015-05-26 18:31:53 +02:00
2013-06-15 18:54:01 -03:00
2013-06-02 11:27:19 +02:00
2014-05-26 11:40:15 +02:00
2014-05-26 11:40:15 +02:00
2015-10-26 15:05:26 +01:00
2013-11-22 17:16:11 +01:00
2015-10-28 04:23:14 -05:00