changeset 21609:3452c36a7fe2

VobSub tracks cannot be handled by libass, do not mark them with 'a'. This fixes the bug with VobSub not being displayed with -ass.
author eugeni
date Fri, 15 Dec 2006 19:35:06 +0000
parents d64b282f8e2f
children 05a8a034d9aa
files libmpdemux/demux_mkv.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demux_mkv.c	Fri Dec 15 18:55:17 2006 +0000
+++ b/libmpdemux/demux_mkv.c	Fri Dec 15 19:35:06 2006 +0000
@@ -2376,7 +2376,8 @@
   for (i = 0; i < mkv_d->num_tracks; i++)
     {
       track = mkv_d->tracks[i];
-      if (track->type != MATROSKA_TRACK_SUBTITLE)
+      if (track->type != MATROSKA_TRACK_SUBTITLE ||
+          track->subtitle_type == MATROSKA_SUBTYPE_VOBSUB)
         continue;
 
       track->sh_sub.type = 'a';