[vlc-commits] commit: Matroska: support for Cook (Jean-Baptiste Kempf )
git at videolan.org
git at videolan.org
Mon Apr 12 15:54:21 CEST 2010
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Apr 12 15:33:03 2010 +0200| [1056e181a77fd531bed3da565ab1bbda43ebdb17] | committer: Jean-Baptiste Kempf
Matroska: support for Cook
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=1056e181a77fd531bed3da565ab1bbda43ebdb17
---
modules/demux/mkv/matroska_segment.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index f0477d1..53459f8 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -932,6 +932,14 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
}
tracks[i_track]->fmt.audio.i_blockalign = ( tracks[i_track]->fmt.audio.i_bitspersample + 7 ) / 8 * tracks[i_track]->fmt.audio.i_channels;
}
+ else if( !strncmp( tracks[i_track]->psz_codec, "A_REAL/", 7 ) )
+ {
+ if( !strcmp( tracks[i_track]->psz_codec, "A_REAL/COOK" ) )
+ tracks[i_track]->fmt.i_codec = VLC_CODEC_COOK;
+ tracks[i_track]->fmt.i_extra = tracks[i_track]->i_extra_data;
+ tracks[i_track]->fmt.p_extra = xmalloc( tracks[i_track]->i_extra_data );
+ memcpy( tracks[i_track]->fmt.p_extra,tracks[i_track]->p_extra_data, tracks[i_track]->i_extra_data );
+ }
/* disabled due to the potential "S_KATE" namespace issue */
else if( !strcmp( tracks[i_track]->psz_codec, "S_KATE" ) )
{
More information about the vlc-commits
mailing list