vlc | branch: master | Steve Lhomme <[email protected]> | Mon Jul 10 10:07:01 
2017 +0200| [0acb0141815b70a67d29298f8ee584a2613ad4fc] | committer: 
Jean-Baptiste Kempf

rawaud: initialize the ES directly with the known codec

Signed-off-by: Jean-Baptiste Kempf <[email protected]>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0acb0141815b70a67d29298f8ee584a2613ad4fc
---

 modules/demux/rawaud.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/modules/demux/rawaud.c b/modules/demux/rawaud.c
index c21951806d..968bc4af2d 100644
--- a/modules/demux/rawaud.c
+++ b/modules/demux/rawaud.c
@@ -110,10 +110,9 @@ static int Open( vlc_object_t * p_this )
     if( !p_sys )
         return VLC_ENOMEM;
 
-    es_format_Init( &p_sys->fmt, AUDIO_ES, 0 );
-
     char *psz_fourcc = var_CreateGetString( p_demux, "rawaud-fourcc" );
-    p_sys->fmt.i_codec = vlc_fourcc_GetCodecFromString( AUDIO_ES, psz_fourcc );
+    es_format_Init( &p_sys->fmt, AUDIO_ES,
+                    vlc_fourcc_GetCodecFromString( AUDIO_ES, psz_fourcc ) );
     free( psz_fourcc );
 
     if( !p_sys->fmt.i_codec )

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to