1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-25 04:38:01 +00:00
mpv/sub
Dudemanguy 062104d16e sub: redecode cached packets on UPDATE_SUB_HARD or UPDATE_SUB_FILT
UPDATE_SUB_HARD causes all of the ass objects to reset in order to apply
the new style. UPDATE_SUB_FILT doesn't actually reset the sd, but it
should in order to update the actual filters so that was added here.
Doing this causes the current subtitle to be dropped. In the paused
cause, this concidentally works because command.c forces a video refresh
which then reloads the subtitle essentially. But while playing, the
subtitle will be dropped and you won't get anything until the next one
appears.

Instead of using video refreshes, what we can do is just always save the
last two subtitle packets in a cache and redecode them if needed. This
is much easier and also allows us to get rid of all the video refresh
logic in command.c. Fixes #12386.
2023-11-05 15:45:43 +00:00
..
ass_mp.c sub: add --sub-fonts-dir and --osd-fonts-dir options 2023-03-01 02:09:46 +00:00
ass_mp.h sub/ass_mp: filters/f_lavfi: forward declare mp_log 2023-09-21 14:40:11 +00:00
dec_sub.c sub: redecode cached packets on UPDATE_SUB_HARD or UPDATE_SUB_FILT 2023-11-05 15:45:43 +00:00
dec_sub.h sub: redecode cached packets on UPDATE_SUB_HARD or UPDATE_SUB_FILT 2023-11-05 15:45:43 +00:00
draw_bmp.c draw_bmp: fix overflowing coordinates in mark_rcs 2023-07-30 20:06:20 +02:00
draw_bmp.h test: integrate unittests with meson 2023-03-02 15:45:27 +00:00
filter_jsre.c sub: jsre filter: abort init early on empty filter list 2022-06-09 14:38:24 +03:00
filter_regex.c sub: sub-filter-regex and jsre: support ass-to-plaintext 2021-08-05 21:32:22 +03:00
filter_sdh.c various: fix various typos in the code base 2023-03-28 19:29:44 +00:00
img_convert.c Replace uses of FFMIN/MAX with MPMIN/MAX 2019-10-31 11:24:20 +01:00
img_convert.h sub: move RGBA scaling to vo_vaapi 2016-07-03 19:32:43 +02:00
lavc_conv.c sub/lavc_conv: properly fill avctx with codecpar values at init 2023-03-14 23:59:47 +02:00
meson.build build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
osd_font.otf osc: use custom symbols for window controls 2019-12-11 13:53:10 -08:00
osd_libass.c build: remove outdated generated directory 2023-07-31 19:00:06 +00:00
osd_state.h various: sort some standard headers 2023-10-20 21:31:09 +02:00
osd.c various: remove ATOMIC_VAR_INIT 2023-10-20 21:31:09 +02:00
osd.h sub: add --sub-fonts-dir and --osd-fonts-dir options 2023-03-01 02:09:46 +00:00
sd_ass.c sub: redecode cached packets on UPDATE_SUB_HARD or UPDATE_SUB_FILT 2023-11-05 15:45:43 +00:00
sd_lavc.c sd_lavc: fix subtitle presentation time 2023-09-11 01:58:07 +00:00
sd.h player: remove auto choice from sub-forced-only 2023-08-29 16:39:00 +00:00