mirror of
https://github.com/mpv-player/mpv
synced 2024-11-14 22:48:35 +01:00
sub/sd_ass: always set the libass track type to TRACK_TYPE_ASS
It would always autodetect it based on the passed style block, but as we are defining it - we might as well define it always. (As far as I can see all decoders in libavcodec utilize 4+ style blocks)
This commit is contained in:
parent
2d74b2d832
commit
e5c1cf2e3e
@ -177,8 +177,7 @@ static int init(struct sd *sd)
|
||||
ass_set_style_overrides(ctx->ass_library, opts->ass_force_style_list);
|
||||
|
||||
ctx->ass_track = ass_new_track(ctx->ass_library);
|
||||
if (!ctx->is_converted)
|
||||
ctx->ass_track->track_type = TRACK_TYPE_ASS;
|
||||
ctx->ass_track->track_type = TRACK_TYPE_ASS;
|
||||
|
||||
ctx->shadow_track = ass_new_track(ctx->ass_library);
|
||||
ctx->shadow_track->PlayResX = 384;
|
||||
|
Loading…
Reference in New Issue
Block a user