1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-22 14:52:43 +00:00
mpv/sub
NRK d70b859084 mp_image: abort on av_buffer_ref() failure
this changes mp_image_new_ref() to handle allocation failure itself
instead of doing it at its many call-sites (some of which never checked
for failure at all).

also remove MP_HANDLE_OOM() from the call sites since this is not
necessary anymore.

not all the call-sites have been touched, since some of the caller might
be relying on `mp_image_new_ref(NULL)` returning NULL.

Fixes: https://github.com/mpv-player/mpv/issues/11840
2023-06-28 20:56:23 -07:00
..
ass_mp.c
ass_mp.h
dec_sub.c sub: rewrite auto-forced-only support 2023-06-25 11:01:58 +02:00
dec_sub.h sub: rewrite auto-forced-only support 2023-06-25 11:01:58 +02:00
draw_bmp.c
draw_bmp.h
filter_jsre.c
filter_regex.c
filter_sdh.c
img_convert.c
img_convert.h
lavc_conv.c
osd_font.otf
osd_libass.c
osd_state.h
osd.c mp_image: abort on av_buffer_ref() failure 2023-06-28 20:56:23 -07:00
osd.h
sd_ass.c sub: rewrite auto-forced-only support 2023-06-25 11:01:58 +02:00
sd_lavc.c sub: rewrite auto-forced-only support 2023-06-25 11:01:58 +02:00
sd.h sub: rewrite auto-forced-only support 2023-06-25 11:01:58 +02:00