[vlc-devel] [PATCH] jack: fix truncation warning
Alexandre Janniaux
ajanni at videolabs.io
Wed Aug 28 18:39:55 CEST 2019
---
modules/access/jack.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/modules/access/jack.c b/modules/access/jack.c
index 64e8fc2557..7d41c665ae 100644
--- a/modules/access/jack.c
+++ b/modules/access/jack.c
@@ -529,7 +529,7 @@ static void Parse( demux_t *p_demux )
if( !strncmp( psz_parser, "channels=", strlen( "channels=" ) ) )
{
- p_sys->i_channels = abs( strtol( psz_parser + strlen( "channels=" ),
+ p_sys->i_channels = labs( strtol( psz_parser + strlen( "channels=" ),
&psz_parser, 0 ) );
}
else if( !strncmp( psz_parser, "ports=", strlen( "ports=" ) ) )
@@ -564,7 +564,7 @@ static void Parse( demux_t *p_demux )
*psz_parser++ = '\0';
if( !strncmp( psz_parser, "channels=", strlen( "channels=" ) ) )
{
- p_sys->i_channels = abs( strtol(
+ p_sys->i_channels = labs( strtol(
psz_parser + strlen( "channels=" ), &psz_parser, 0 ) );
}
else if( !strncmp( psz_parser, "ports=", strlen( "ports=" ) ) )
@@ -600,4 +600,3 @@ static void Parse( demux_t *p_demux )
free( psz_dup );
}
-
--
2.23.0
More information about the vlc-devel
mailing list