mpv/sub
Guido Cella 4e4d6a16d8 osd_libass: fix integer overflow in osd_get_text_size()
If show-text ${playlist} is used with --osd-scale-by-window=no while
printing to the terminal or while mpv is starting, the out_screen_h
assignment in osd_get_text_size() causes runtime error: signed integer
overflow: 288 - -2147483648 cannot be represented in type 'int'. Fix
this by not making prepare_osd_ass() use an infinite playresy.

This prevents printing show-text ${playlist} without a line limit to the
terminal with --osd-scale-by-window=no, which makes only the last
playlist entries be printed, and the selected one is not printed if it
isn't among them. A later commit will make the line calculation
accurate.
2024-10-16 15:10:23 +02:00
..
ass_mp.c various: remove global.h inclusion where not needed 2024-10-01 12:23:44 +02:00
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 various: remove no longer needed availability checks 2024-06-22 16:12:14 +02:00
meson.build meson: use relative file paths for file2string 2024-09-21 23:39:10 +02:00
osd.c sub/osd: add log if osd rendering takes too long time 2024-09-14 20:23:22 +02:00
osd.h sub: add (sub/osd)-border-style; renaming sub options 2024-07-12 20:17:38 +00:00
osd_font.otf
osd_libass.c osd_libass: fix integer overflow in osd_get_text_size() 2024-10-16 15:10:23 +02:00
osd_state.h sub: remove dead code 2024-09-03 18:31:38 +02:00
sd.h
sd_ass.c sub/sd_ass: handle subs with unknown durations on a per packet basis 2024-10-16 02:26:06 +00:00
sd_lavc.c sub: update codec info 2024-06-08 23:06:22 +02:00