1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-07 14:47:53 +00:00

Apply -ass-force-style also to tracks generated from subdata.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@19590 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
eugeni 2006-08-29 10:35:58 +00:00
parent a6e49255a6
commit 1d9317f8d5
2 changed files with 3 additions and 1 deletions

View File

@ -313,7 +313,7 @@ static int process_event_tail(ass_track_t* track, ass_event_t* event, char* str,
* \param track track to apply overrides to
* The format for overrides is [StyleName.]Field=Value
*/
static void process_force_style(ass_track_t* track) {
void process_force_style(ass_track_t* track) {
char **fs, *eq, *dt, *style, *tname, *token;
ass_style_t* target;
int sid;

View File

@ -21,6 +21,7 @@ extern float text_font_scale_factor;
extern int subtitle_autoscale;
extern double ass_internal_font_size_coeff;
extern void process_force_style(ass_track_t* track);
/**
* \brief Convert subdata to ass_track
@ -107,6 +108,7 @@ ass_track_t* ass_read_subdata(sub_data* subdata, double fps) {
p--; // remove last ' '
*p = 0;
}
process_force_style(track);
return track;
}