From 86689f7bf23dd05b5e6b9e42e43379d52e27c338 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 15 Mar 2014 22:17:51 +0100 Subject: demux_libass: change how external ASS subtitles are loaded Instead of parsing the ASS file in demux_libass.c and trying to pass the ASS_Track to the subtitle renderer, just read all file data in demux_libass.c, and let the subtitle renderer pass the file contents to ass_process_codec_private(). (This happens to parse full files too.) Makes the code simpler, though it also relies harder on the (messy) probe logic in demux_libass.c. --- sub/sd.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'sub/sd.h') diff --git a/sub/sd.h b/sub/sd.h index 78b9825ead..3f348fcb32 100644 --- a/sub/sd.h +++ b/sub/sd.h @@ -28,9 +28,6 @@ struct sd { // Resolution hints stored in mp4 files. int sub_stream_w, sub_stream_h; - // Make sd_ass use an existing track - struct ass_track *ass_track; - // Shared renderer for ASS - done to avoid reloading embedded fonts. struct ass_library *ass_library; struct ass_renderer *ass_renderer; -- cgit v1.2.3