live555: add audio/DAT12 and audio/L20 RTP payload formats
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 22 Jan 2011 13:59:44 +0000 (15:59 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 22 Jan 2011 14:09:45 +0000 (16:09 +0200)
modules/demux/live555.cpp

index 86be94c..a793301 100644 (file)
@@ -852,6 +852,11 @@ static int SessionsSetup( demux_t *p_demux )
                     tk->fmt.i_codec = VLC_CODEC_S16B;
                     tk->fmt.audio.i_bitspersample = 16;
                 }
+                else if( !strcmp( sub->codecName(), "L20" ) )
+                {
+                    tk->fmt.i_codec = VLC_CODEC_S20B;
+                    tk->fmt.audio.i_bitspersample = 20;
+                }
                 else if( !strcmp( sub->codecName(), "L24" ) )
                 {
                     tk->fmt.i_codec = VLC_CODEC_S24B;
@@ -862,6 +867,11 @@ static int SessionsSetup( demux_t *p_demux )
                     tk->fmt.i_codec = VLC_CODEC_U8;
                     tk->fmt.audio.i_bitspersample = 8;
                 }
+                else if( !strcmp( sub->codecName(), "DAT12" ) )
+                {
+                    tk->fmt.i_codec = VLC_CODEC_DAT12;
+                    tk->fmt.audio.i_bitspersample = 12;
+                }
                 else if( !strcmp( sub->codecName(), "PCMU" ) )
                 {
                     tk->fmt.i_codec = VLC_CODEC_MULAW;