Commit 0f1e1ce1 authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Completly untested G726 support for liveMedia. refs #601

  If anyone has access to such a stream, please test this. The AXIS 241QA has this for instance.

  See also: http://forum.videolan.org/viewtopic.php?t=18287&start=0&postdays=0&postorder=asc&highlight=g726
parent fb847b39
......@@ -486,6 +486,18 @@ static int Open ( vlc_object_t *p_this )
{
tk->fmt.i_codec = VLC_FOURCC( 'a', 'l', 'a', 'w' );
}
else if( !strncmp( sub->codecName(), "G726", 4 ) )
{
tk->fmt.i_codec = VLC_FOURCC( 'g', '7', '2', '6' );
if( !strcmp( sub->codecName()+5, "40" )
tk->fmt.audio.i_bitspersample = 5;
else if( !strcmp( sub->codecName()+5, "32" )
tk->fmt.audio.i_bitspersample = 4;
else if( !strcmp( sub->codecName()+5, "24" )
tk->fmt.audio.i_bitspersample = 3;
else if( !strcmp( sub->codecName()+5, "16" )
tk->fmt.audio.i_bitspersample = 2;
}
else if( !strcmp( sub->codecName(), "AMR" ) )
{
tk->fmt.i_codec = VLC_FOURCC( 's', 'a', 'm', 'r' );
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment