1
mirror of https://github.com/mpv-player/mpv synced 2024-11-03 03:19:24 +01:00
mpv/video
wm4 72aac9ae8a video: introduce failure path for image allocations
Until now, failure to allocate image data resulted in a crash (i.e.
abort() was called). This was intentional, because it's pretty silly to
degrade playback, and in almost all situations, the OOM will probably
kill you anyway. (And then there's the standard Linux overcommit
behavior, which also will kill you at some point.)

But I changed my opinion, so here we go. This change does not affect
_all_ memory allocations, just image data. Now in most failure cases,
the output will just be skipped. For video filters, this coincidentally
means that failure is treated as EOF (because the playback core assumes
EOF if nothing comes out of the video filter chain). In other
situations, output might be in some way degraded, like skipping frames,
not scaling OSD, and such.

Functions whose return values changed semantics:

  mp_image_alloc
  mp_image_new_copy
  mp_image_new_ref
  mp_image_make_writeable
  mp_image_setrefp
  mp_image_to_av_frame_and_unref
  mp_image_from_av_frame
  mp_image_new_external_ref
  mp_image_new_custom_ref
  mp_image_pool_make_writeable
  mp_image_pool_get
  mp_image_pool_new_copy
  mp_vdpau_mixed_frame_create
  vf_alloc_out_image
  vf_make_out_image_writeable
  glGetWindowScreenshot
2014-06-17 22:43:43 +02:00
..
decode video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
filter video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
out video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
csputils.c csputils: provide string descriptions of chroma locations 2014-02-16 03:51:02 +01:00
csputils.h csputils: provide string descriptions of chroma locations 2014-02-16 03:51:02 +01:00
fmt-conversion.c video: synchronize mpv rgb pixel format names with ffmpeg names 2014-06-14 10:03:04 +02:00
fmt-conversion.h Take care of some libavutil deprecations, drop support for FFmpeg 1.0 2013-11-29 17:39:57 +01:00
hwdec.h video: move struct mp_hwdec_info into its own header file 2013-11-23 21:26:31 +01:00
image_writer.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
image_writer.h image_writer: mp_msg conversions 2013-12-21 20:50:10 +01:00
img_format.c video: cosmetics: reformat image format names table 2014-06-14 10:06:23 +02:00
img_format.h video: synchronize mpv rgb pixel format names with ffmpeg names 2014-06-14 10:03:04 +02:00
img_fourcc.h core: redo how codecs are mapped, remove codecs.conf 2013-02-10 17:25:56 +01:00
memcpy_pic.h memcpy_pic: reformat 2013-11-06 20:27:13 +01:00
mp_image_pool.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
mp_image_pool.h video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
mp_image.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
mp_image.h video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
sws_utils.c options: remove global variables for swscale options; rename them 2014-06-11 00:39:13 +02:00
sws_utils.h options: remove global variables for swscale options; rename them 2014-06-11 00:39:13 +02:00
vaapi.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
vaapi.h video: warn if an emulated hwdec API is used 2014-05-28 02:08:45 +02:00
vdpau_functions.inc video: warn if an emulated hwdec API is used 2014-05-28 02:08:45 +02:00
vdpau_mixer.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
vdpau_mixer.h vdpau_mixer: allow overriding frame opts 2014-05-02 01:08:04 +02:00
vdpau.c video: introduce failure path for image allocations 2014-06-17 22:43:43 +02:00
vdpau.h video: warn if an emulated hwdec API is used 2014-05-28 02:08:45 +02:00
vfcap.h video: remove --flip 2013-12-05 22:58:54 +01:00