diff options
author | Dudemanguy <random342@airmail.cc> | 2024-01-22 12:55:50 -0600 |
---|---|---|
committer | Dudemanguy <random342@airmail.cc> | 2024-02-15 16:43:11 +0000 |
commit | 0a4b098c616bf1b6700bc88878b028bf1f446868 (patch) | |
tree | 9d53a4c433917954ed327f750365bba02071c63b /sub/sd_lavc.c | |
parent | 5098a27e662ba4a4779baad0408b5e6dcb85c384 (diff) | |
download | mpv-0a4b098c616bf1b6700bc88878b028bf1f446868.tar.bz2 mpv-0a4b098c616bf1b6700bc88878b028bf1f446868.tar.xz |
dec_sub: expand sub packet caching
Previously, mpv only saved a strict limit of two packets while decoding
subtitles, but it is a bit incomplete. Firstly, it's certainly possible
for there to be more than two subtitles visible at once. And also, it
did not take into account preloading. Rework this mechanism so that it
is a growable array that can store as many packets as we want. Note that
in this commit, the packets are only ever discarded on reset or destroy,
so in theory it could grow forever. Some discarding logic will be added
in the next commit since it is inherently tied to other things.
Diffstat (limited to 'sub/sd_lavc.c')
0 files changed, 0 insertions, 0 deletions