[vlc-commits] wav: check ES
    Rémi Denis-Courmont 
    git at videolan.org
       
    Thu May  3 14:28:21 CEST 2018
    
    
  
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May  3 12:01:51 2018 +0300| [b2354571107b1039c2dc0de08d61d0002797f6e1] | committer: Rémi Denis-Courmont
wav: check ES
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b2354571107b1039c2dc0de08d61d0002797f6e1
---
 modules/demux/wav.c | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/modules/demux/wav.c b/modules/demux/wav.c
index 997ff0b996..d93526f867 100644
--- a/modules/demux/wav.c
+++ b/modules/demux/wav.c
@@ -424,6 +424,8 @@ static int Open( vlc_object_t * p_this )
     }
 
     p_sys->p_es = es_out_Add( p_demux->out, &p_sys->fmt );
+    if( unlikely(p_sys->p_es == NULL) )
+        goto error;
 
     date_Init( &p_sys->pts, p_sys->fmt.audio.i_rate, 1 );
     date_Set( &p_sys->pts, 1 );
    
    
More information about the vlc-commits
mailing list