diff libmpdemux/demuxer.c @ 25656:00e4d59a0be4

Remove global_ass_track. Instead create an ass_track for each 't' track. Global_ass_track obviously can not work when there is more than one 't tracks, their lines will be mixed up.
author eugeni
date Fri, 11 Jan 2008 21:45:20 +0000
parents 0190aa38aae2
children dfeb8ea2a7a8
line wrap: on
line diff
--- a/libmpdemux/demuxer.c	Fri Jan 11 21:45:17 2008 +0000
+++ b/libmpdemux/demuxer.c	Fri Jan 11 21:45:20 2008 +0000
@@ -827,7 +827,8 @@
        sh->ass_track = ass_new_track(ass_library);
        if (sh->ass_track && sh->extradata)
          ass_process_codec_private(sh->ass_track, sh->extradata, sh->extradata_len);
-     }
+     } else if (sh && sh->type == 't')
+       sh->ass_track = ass_default_track(ass_library);
    }
  }
 #endif