summaryrefslogtreecommitdiffstats
path: root/sub/sd_lavc.c
diff options
context:
space:
mode:
authorDudemanguy <random342@airmail.cc>2024-01-22 12:55:50 -0600
committerDudemanguy <random342@airmail.cc>2024-02-15 16:43:11 +0000
commit0a4b098c616bf1b6700bc88878b028bf1f446868 (patch)
tree9d53a4c433917954ed327f750365bba02071c63b /sub/sd_lavc.c
parent5098a27e662ba4a4779baad0408b5e6dcb85c384 (diff)
downloadmpv-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