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 01:51:27 +0000 (02:51 +0100)
commite04b039b1528f4c7df5c2b93865651bfea168a19
tree796b7a9372477cf9c14415b364b4cff2c66f12b1
parentd295ddffe138de7a17337bc88c39425e13fd073a
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