Commit f7a5c96a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MKV: fix support of MLP tracks in MKV.

Sample can be found at ftp://streams.videolan.org/streams-videolan/matroska/MLP_5.1.mka
It seems to work, but I have difficulties to find a reference output.
Support for TrueHD is not yet tested because of lack of correct sample.
parent 9e24ccb7
......@@ -854,6 +854,16 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
{
tracks[i_track]->fmt.i_codec = VLC_FOURCC( 'd', 't', 's', ' ' );
}
else if( !strcmp( tracks[i_track]->psz_codec, "A_MLP" ) )
{
tracks[i_track]->fmt.i_codec = VLC_FOURCC('m', 'l', 'p', ' ' );
}
else if( !strcmp( tracks[i_track]->psz_codec, "A_TRUEHD" ) )
{
/* FIXME when more samples arrive */
tracks[i_track]->fmt.i_codec = VLC_FOURCC('t', 'r', 'h', 'd' );
p_fmt->b_packetized = false;
}
else if( !strcmp( tracks[i_track]->psz_codec, "A_FLAC" ) )
{
tracks[i_track]->fmt.i_codec = VLC_FOURCC( 'f', 'l', 'a', 'c' );
......
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