Commit 7ad08864 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

MKV: cosmetics

parent c0d7b745
...@@ -88,13 +88,11 @@ matroska_segment_c::~matroska_segment_c() ...@@ -88,13 +88,11 @@ matroska_segment_c::~matroska_segment_c()
/***************************************************************************** /*****************************************************************************
* Tools * Tools *
*****************************************************************************
* * LoadCues : load the cues element and update index * * LoadCues : load the cues element and update index
*
* * LoadTags : load ... the tags element * * LoadTags : load ... the tags element
*
* * InformationCreate : create all information, load tags if present * * InformationCreate : create all information, load tags if present
*
*****************************************************************************/ *****************************************************************************/
void matroska_segment_c::LoadCues( KaxCues *cues ) void matroska_segment_c::LoadCues( KaxCues *cues )
{ {
...@@ -748,13 +746,11 @@ int matroska_segment_c::BlockFindTrackIndex( size_t *pi_track, ...@@ -748,13 +746,11 @@ int matroska_segment_c::BlockFindTrackIndex( size_t *pi_track,
bool matroska_segment_c::Select( mtime_t i_start_time ) bool matroska_segment_c::Select( mtime_t i_start_time )
{ {
size_t i_track;
/* add all es */ /* add all es */
msg_Dbg( &sys.demuxer, "found %d es", (int)tracks.size() ); msg_Dbg( &sys.demuxer, "found %d es", (int)tracks.size() );
sys.b_pci_packet_set = false; sys.b_pci_packet_set = false;
for( i_track = 0; i_track < tracks.size(); i_track++ ) for( size_t i_track = 0; i_track < tracks.size(); i_track++ )
{ {
mkv_track_t *p_tk = tracks[i_track]; mkv_track_t *p_tk = tracks[i_track];
es_format_t *p_fmt = &p_tk->fmt; es_format_t *p_fmt = &p_tk->fmt;
...@@ -1069,6 +1065,13 @@ bool matroska_segment_c::Select( mtime_t i_start_time ) ...@@ -1069,6 +1065,13 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
p_tk->fmt.p_extra = xmalloc( p_tk->i_extra_data ); p_tk->fmt.p_extra = xmalloc( p_tk->i_extra_data );
memcpy( p_tk->fmt.p_extra,p_tk->p_extra_data, p_tk->i_extra_data ); memcpy( p_tk->fmt.p_extra,p_tk->p_extra_data, p_tk->i_extra_data );
} }
else if( !strcmp( p_tk->psz_codec, "A_REAL/14_4" ) )
{
p_fmt->i_codec = VLC_CODEC_RA_144;
p_fmt->audio.i_channels = 1;
p_fmt->audio.i_rate = 8000;
p_fmt->audio.i_blockalign = 0x14;
}
/* disabled due to the potential "S_KATE" namespace issue */ /* disabled due to the potential "S_KATE" namespace issue */
else if( !strcmp( p_tk->psz_codec, "S_KATE" ) ) else if( !strcmp( p_tk->psz_codec, "S_KATE" ) )
{ {
...@@ -1168,13 +1171,6 @@ bool matroska_segment_c::Select( mtime_t i_start_time ) ...@@ -1168,13 +1171,6 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
p_tk->fmt.i_cat = NAV_ES; p_tk->fmt.i_cat = NAV_ES;
continue; continue;
} }
else if( !strcmp( p_tk->psz_codec, "A_REAL/14_4" ) )
{
p_fmt->i_codec = VLC_CODEC_RA_144;
p_fmt->audio.i_channels = 1;
p_fmt->audio.i_rate = 8000;
p_fmt->audio.i_blockalign = 0x14;
}
else else
{ {
msg_Err( &sys.demuxer, "unknown codec id=`%s'", p_tk->psz_codec ); msg_Err( &sys.demuxer, "unknown codec id=`%s'", p_tk->psz_codec );
......
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