forked from libass/JavascriptSubtitlesOctopus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
c++: add functions to detect and remove animatons
This prepares the dropAnimations and renderAhead features from jellyfin, though the functions are not yet used. The implementation in this commit completly replaces the faulty code from jellyfin, which was added in the misleadingly named "Less zealous logging" commit jellyfin@6980deb The old version was not detecting valid ASS tags like '\t (\frz50' and did some other checks not backed by ASS' behaviour. Rewrite it from scratch to not miss any animated tags. The previous version made an attempt to also detect and not report noop animation tags like '\move(1,1,1,1)'; the new version does not as correctly parsing the tag and its values is simply more effort than its worth and likely to result in false negatives. Noop animation tags should be sufficiently rare anyway.
- Loading branch information
Showing
1 changed file
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters