[vlc-commits] mux: avformat: fix generic mpga muxing

Francois Cartegnie git at videolan.org
Fri Jan 19 18:44:17 CET 2018


vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Fri Jan 19 17:03:46 2018 +0100| [b73e8bd7c23608e8fa57130bf6cf23bcb20b544d] | committer: Jean-Baptiste Kempf

mux: avformat: fix generic mpga muxing

(cherry picked from commit 4f7e07649035b5a58c1b0dae8ac1343e39166308)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

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

 modules/demux/avformat/mux.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/modules/demux/avformat/mux.c b/modules/demux/avformat/mux.c
index 494cadc182..9500c915b4 100644
--- a/modules/demux/avformat/mux.c
+++ b/modules/demux/avformat/mux.c
@@ -213,6 +213,10 @@ static int AddStream( sout_mux_t *p_mux, sout_input_t *p_input )
             return VLC_EGENERIC;
         }
     }
+    else if( fmt->i_codec == VLC_CODEC_MPGA && fmt->i_profile == 3 )
+    {
+        i_codec_id = AV_CODEC_ID_MP3;
+    }
 
     if( fmt->i_cat != VIDEO_ES && fmt->i_cat != AUDIO_ES)
     {



More information about the vlc-commits mailing list