[vlc-commits] avformat: mux: Fix GetFfmpegCodec parameters

Hugo Beauzée-Luyssen git at videolan.org
Tue Jun 20 13:50:52 CEST 2017


vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Jun 20 11:29:16 2017 +0200| [6b16ae512ffaf56510952d91992d81425df6072b] | committer: Hugo Beauzée-Luyssen

avformat: mux: Fix GetFfmpegCodec parameters

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

 modules/demux/avformat/mux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 59a423525c..9cd12ba27e 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -193,7 +193,7 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
 
     msg_Dbg( p_mux, "adding input" );
 
-    if( !GetFfmpegCodec( fmt->i_codec, 0, &i_codec_id, 0 )
+    if( !GetFfmpegCodec( fmt->i_cat, fmt->i_codec, &i_codec_id, NULL )
      || i_codec_id == AV_CODEC_ID_NONE )
     {
         msg_Dbg( p_mux, "couldn't find codec for fourcc '%4.4s'",



More information about the vlc-commits mailing list