mirror of
https://github.com/mpv-player/mpv
synced 2025-03-20 02:09:52 +00:00
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. |
||
---|---|---|
.. | ||
ass_mp.c | ||
ass_mp.h | ||
dec_sub.c | ||
dec_sub.h | ||
draw_bmp.c | ||
draw_bmp.h | ||
filter_jsre.c | ||
filter_regex.c | ||
filter_sdh.c | ||
img_convert.c | ||
img_convert.h | ||
lavc_conv.c | ||
meson.build | ||
osd_font.otf | ||
osd_libass.c | ||
osd_state.h | ||
osd.c | ||
osd.h | ||
sd_ass.c | ||
sd_lavc.c | ||
sd.h |