[vlc-commits] [Git][videolan/vlc][master] h26x: fix bad failure check
    François Cartegnie (@fcartegnie) 
    gitlab at videolan.org
       
    Fri Dec 31 11:21:12 UTC 2021
    
    
  
François Cartegnie pushed to branch master at VideoLAN / VLC
Commits:
a08a437d by Lyndon Brown at 2021-12-31T11:03:37+00:00
h26x: fix bad failure check
- - - - -
1 changed file:
- modules/demux/mpeg/h26x.c
Changes:
=====================================
modules/demux/mpeg/h26x.c
=====================================
@@ -335,7 +335,7 @@ static int GenericOpen( demux_t *p_demux, const char *psz_module,
 
     float f_fps = 0;
     char *psz_fpsvar;
-    if( asprintf( &psz_fpsvar, "%s-fps", psz_module ) )
+    if( asprintf( &psz_fpsvar, "%s-fps", psz_module ) != -1 )
     {
         f_fps = var_CreateGetFloat( p_demux, psz_fpsvar );
         free( psz_fpsvar );
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a08a437d23737bab67520edd55328e8b27b53805
-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/a08a437d23737bab67520edd55328e8b27b53805
You're receiving this email because of your account on code.videolan.org.
    
    
More information about the vlc-commits
mailing list