[vlc-commits] nuv: remove redundant casts
Rémi Denis-Courmont
git at videolan.org
Wed Apr 19 19:50:05 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Apr 19 20:38:49 2017 +0300| [1e5754c7b6351c2038e1ec744e38b02ef4d76344] | committer: Rémi Denis-Courmont
nuv: remove redundant casts
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1e5754c7b6351c2038e1ec744e38b02ef4d76344
---
modules/demux/nuv.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/modules/demux/nuv.c b/modules/demux/nuv.c
index d19646329a..b8d88a4bee 100644
--- a/modules/demux/nuv.c
+++ b/modules/demux/nuv.c
@@ -458,7 +458,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_SUCCESS;
case DEMUX_GET_POSITION:
- pf = (double*)va_arg( args, double * );
+ pf = va_arg( args, double * );
if( p_sys->i_total_length > 0 && p_sys->i_pcr >= 0 )
{
@@ -483,7 +483,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
{
int64_t i_pos;
- f = (double)va_arg( args, double );
+ f = va_arg( args, double );
p_sys->i_pcr = -1;
@@ -503,14 +503,14 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
case DEMUX_GET_TIME:
- pi64 = (int64_t*)va_arg( args, int64_t * );
+ pi64 = va_arg( args, int64_t * );
*pi64 = p_sys->i_pcr >= 0 ? p_sys->i_pcr : 0;
return VLC_SUCCESS;
case DEMUX_SET_TIME:
{
int64_t i_pos;
- i64 = (int64_t)va_arg( args, int64_t );
+ i64 = va_arg( args, int64_t );
p_sys->i_pcr = -1;
@@ -522,7 +522,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
}
case DEMUX_GET_LENGTH:
- pi64 = (int64_t*)va_arg( args, int64_t * );
+ pi64 = va_arg( args, int64_t * );
if( p_sys->i_total_length >= 0 )
{
*pi64 = p_sys->i_total_length;
@@ -540,7 +540,7 @@ static int Control( demux_t *p_demux, int i_query, va_list args )
return VLC_EGENERIC;
case DEMUX_GET_FPS:
- pf = (double*)va_arg( args, double * );
+ pf = va_arg( args, double * );
*pf = p_sys->hdr.d_fps;
return VLC_SUCCESS;
More information about the vlc-commits
mailing list