[vlc-devel] commit: Fixed segfault with incomplete mkv files. (Laurent Aimar )
git version control
git at videolan.org
Sun Feb 28 12:58:39 CET 2010
vlc | branch: master | Laurent Aimar <fenrir at videolan.org> | Sun Feb 28 12:35:18 2010 +0100| [059a5785363ecf61de81ebf0e3628b5638b93d43] | committer: Laurent Aimar
Fixed segfault with incomplete mkv files.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=059a5785363ecf61de81ebf0e3628b5638b93d43
---
modules/demux/mkv/matroska_segment.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/demux/mkv/matroska_segment.cpp b/modules/demux/mkv/matroska_segment.cpp
index a9c0faf..f0477d1 100644
--- a/modules/demux/mkv/matroska_segment.cpp
+++ b/modules/demux/mkv/matroska_segment.cpp
@@ -641,7 +641,7 @@ bool matroska_segment_c::Select( mtime_t i_start_time )
mkv_track_t *p_tk = tracks[i_track];
es_format_t *p_fmt = &p_tk->fmt;
- if( tracks[i_track]->fmt.i_cat == UNKNOWN_ES )
+ if( p_fmt->i_cat == UNKNOWN_ES || !p_tk->psz_codec )
{
msg_Warn( &sys.demuxer, "invalid track[%d, n=%d]", (int)i_track, tracks[i_track]->i_number );
tracks[i_track]->p_es = NULL;
More information about the vlc-devel
mailing list