1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-28 10:02:17 +00:00
mpv/sub
wm4 a09c7691d7 draw_bmp: silence another ridiculous ubsan warning
UB sanitizer complains that aval<<24 (if >=128) cannot be represented as
int. Indeed, we would shift a bit into the sign of an int, which is
probably UB or implementation defined (I can't even remember, but the
stupidity of it burns). So technically, ubsan might be right.

Change aval to uint32_t, which I don't think has a chance of getting
promoted to int. Change the other *val to uint32_t too for cosmetic
symmetry.

So we have to obscure the intention of the code (*val can take only 8
bits) out of language stupidity. How nice. (What a shitty language.)
2020-04-18 00:16:52 +02:00
..
ass_mp.c sub: log libass version 2020-03-08 19:38:10 +01:00
ass_mp.h command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
dec_sub.c build: make libass non-optional 2020-03-18 22:45:59 +01:00
dec_sub.h sub: make filter_sdh a "proper" filter, allow runtime changes 2020-02-16 02:07:24 +01:00
draw_bmp.c draw_bmp: silence another ridiculous ubsan warning 2020-04-18 00:16:52 +02:00
draw_bmp.h
filter_regex.c sub: add an option to filter subtitles by regex 2020-02-16 02:07:24 +01:00
filter_sdh.c sub: make filter_sdh a "proper" filter, allow runtime changes 2020-02-16 02:07:24 +01: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 Remove remains of Libav compatibility 2020-02-16 15:14:55 +01:00
osd_font.otf osc: use custom symbols for window controls 2019-12-11 13:53:10 -08:00
osd_libass.c command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
osd_state.h stats: some more performance graphs 2020-04-09 00:33:38 +02:00
osd.c stats: some more performance graphs 2020-04-09 00:33:38 +02:00
osd.h command: extend osd-overlay command with bounds reporting 2020-03-06 18:20:11 +01:00
sd_ass.c sub: add an option to filter subtitles by regex 2020-02-16 02:07:24 +01:00
sd_lavc.c sd_lavc: mitigate evil rounding issue that could lead to off-by-1 frames 2020-04-18 00:10:34 +02:00
sd.h sub: add an option to filter subtitles by regex 2020-02-16 02:07:24 +01:00