]> granicus.if.org Git - libass/commit
render: simplify detection of hard overrides
authorDr.Smile <vabnick@gmail.com>
Sun, 21 Jan 2018 17:30:35 +0000 (20:30 +0300)
committerDr.Smile <vabnick@gmail.com>
Sun, 21 Jan 2018 17:30:35 +0000 (20:30 +0300)
commit98727c3b78f44cb3bbc955fcf5d977ebd911d5ca
tree8cabbb77e6e288a7b2cfbae7aa5a83abbf38dc93
parent3171bdafd1bc9b2f6118568a8d51694333e85fb9
render: simplify detection of hard overrides

Previously each \r triggered full rescan of event string.
After this commit such scanning is done once in init_render_context().

Additionally some lines have moved around to correctly account for
state.evt_type (calculated in apply_transition_effects) and
state.explicit (used in reset_render_context).
That should fix cases with incorrectly applied style overrides
for subs with banner scrolling effect before the first \r.
libass/ass_render.c