mirror of
https://github.com/mpv-player/mpv
synced 2024-12-26 17:12:36 +00:00
4e4d6a16d8
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. |
||
---|---|---|
.. | ||
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 |