[vlc-commits] MKV: help debug in case of unrecognized codecs

Jean-Baptiste Kempf git at videolan.org
Fri Apr 13 01:08:11 CEST 2012


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Apr 13 00:45:29 2012 +0200| [580655392f64e2f91f4579c907c9385c0e46f691] | committer: Jean-Baptiste Kempf

MKV: help debug in case of unrecognized codecs

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=580655392f64e2f91f4579c907c9385c0e46f691
---

 modules/demux/mkv/matroska_segment.cpp |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index 6cbdb38..8c5cd0c 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -1094,6 +1094,8 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
 
                 wf_tag_to_fourcc( GetWLE( &p_wf->wFormatTag ), &p_tk->fmt.i_codec, NULL );
 
+                if( p_tk->fmt.i_codec == VLC_FOURCC( 'u', 'n', 'd', 'f' ) )
+                    msg_Err( &sys.demuxer, "Unrecognized wf tag: 0x%x", GetWLE( &p_wf->wFormatTag ) );
                 p_tk->fmt.audio.i_channels   = GetWLE( &p_wf->nChannels );
                 p_tk->fmt.audio.i_rate = GetDWLE( &p_wf->nSamplesPerSec );
                 p_tk->fmt.i_bitrate    = GetDWLE( &p_wf->nAvgBytesPerSec ) * 8;



More information about the vlc-commits mailing list