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 sub: add flag if sub_bitmap should be rendered in video color space 2024-03-02 15:57:02 +00:00
dec_sub.c sub: avoid unneeded calls to is_animated 2024-06-04 12:29:13 +00:00
dec_sub.h sub: avoid unneeded calls to is_animated 2024-06-04 12:29:13 +00:00
draw_bmp.c all: add missing repr assignments 2024-01-26 18:17:02 +02:00
draw_bmp.h csputils: replace mp_alpha_type with pl_alpha_mode 2024-01-22 14:54:55 +00:00
filter_jsre.c sd_ass: allow get_text to return more than 500 bytes 2024-04-27 01:19:56 +02:00
filter_regex.c sd_ass: allow get_text to return more than 500 bytes 2024-04-27 01:19:56 +02:00
filter_sdh.c filter_sdh: optimize get_char_bytes 2024-01-15 16:05:17 +00:00
img_convert.c various: replace some OOM handling 2023-11-24 10:04:55 +01:00
img_convert.h sub: move RGBA scaling to vo_vaapi 2016-07-03 19:32:43 +02:00
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 tools: add narrow left arrow glyph for OSD 2024-05-05 13:47:20 +02:00
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 options: move sub-ass-override 'scale' above 'force' 2024-05-29 17:48:50 +00:00
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