[vlc-commits] input: fix potential signed overflow
Rémi Denis-Courmont
git at videolan.org
Tue Oct 3 20:39:40 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Tue Oct 3 21:15:46 2017 +0300| [d8c016412905b090dc411ce159a83933f6b7aab3] | committer: Rémi Denis-Courmont
input: fix potential signed overflow
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d8c016412905b090dc411ce159a83933f6b7aab3
---
src/input/input.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/input/input.c b/src/input/input.c
index 9d8f145777..4d757867c7 100644
--- a/src/input/input.c
+++ b/src/input/input.c
@@ -2020,7 +2020,7 @@ static bool Control( input_thread_t *p_input,
case INPUT_CONTROL_SET_RATE:
{
/* Get rate and direction */
- int i_rate = abs( val.i_int );
+ long long i_rate = llabs( val.i_int );
int i_rate_sign = val.i_int < 0 ? -1 : 1;
/* Check rate bound */
More information about the vlc-commits
mailing list