avutil/mathematics: return INT64_MIN (=AV_NOPTS_VALUE) from av_rescale_rnd() for...
authorMichael Niedermayer <michael@niedermayer.cc>
Tue, 1 Dec 2015 12:32:31 +0000 (13:32 +0100)
committerMichael Niedermayer <michael@niedermayer.cc>
Sun, 6 Dec 2015 11:40:50 +0000 (12:40 +0100)
commitf91e71cc68fb1e82de0d1b2e5b437af880f3254b
tree791e18b98ff84ea29cff85429e5ba983d2b0d727
parentce15d773d4f7a3f224342b5eb9ccad93c71421e6
avutil/mathematics: return INT64_MIN (=AV_NOPTS_VALUE) from av_rescale_rnd() for overflows

Fixes integer overflow
Fixes: mozilla bug 1229167

Found-by: Tyson Smith
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
(cherry picked from commit f03c2ceec174877e03bb302f5971fbe9ffbe4856)

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
libavutil/mathematics.c