diff options
author | wm4 <wm4@nowhere> | 2020-02-04 20:26:35 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2020-02-04 20:26:35 +0100 |
commit | 6a83187b064959ca55f14b91446d256c8708970f (patch) | |
tree | b01b90fe2c15b29f1d2ad23460244f3f487dc7e1 /video/decode | |
parent | 2b851933e013d992069d5a0defce112317ec7625 (diff) | |
download | mpv-6a83187b064959ca55f14b91446d256c8708970f.tar.bz2 mpv-6a83187b064959ca55f14b91446d256c8708970f.tar.xz |
player: partially fix backward playback display of cached text subtitles
This simply didn't set the direction flag in most situations, which
meant the timestamps used in the subtitle renderer were nonsense,
leading to invisible subtitles.
This works only for text subtitles that are cached in the ASS_Track
state. Reading new subtitles is broken because the demuxer layer has
trouble returning subtitle packets backwards, and I think for rendering
bitmap subtitles, the pruning direction would have to be adjusted. (Not
sure if reversing the timestamps before the subtitle renderer backend is
even the right thing to do. At least for sd_ass.c, it seems to make
sense, because it caches subtitles with "normal" timestamps.)
Diffstat (limited to 'video/decode')
0 files changed, 0 insertions, 0 deletions