summaryrefslogtreecommitdiffstats
path: root/video/sws_utils.h
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-01-15 20:10:08 +0100
committerwm4 <wm4@nowhere>2015-01-15 20:10:08 +0100
commitc118d8f6cc9950ef74d6b5c24bc3a3e56c4b7d42 (patch)
tree56f9e96739380c8b03ec425dd42ee7eac18d6fd1 /video/sws_utils.h
parenta6997be61b6449117edf4e5aee0b10206a3bce67 (diff)
downloadmpv-c118d8f6cc9950ef74d6b5c24bc3a3e56c4b7d42.tar.bz2
mpv-c118d8f6cc9950ef74d6b5c24bc3a3e56c4b7d42.tar.xz
image_writer: check for conversion errors
This can happen when e.g. a VO returns a screenshot in an unsupported format.
Diffstat (limited to 'video/sws_utils.h')
-rw-r--r--video/sws_utils.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/video/sws_utils.h b/video/sws_utils.h
index cf9aa827b2..7c7c1af34b 100644
--- a/video/sws_utils.h
+++ b/video/sws_utils.h
@@ -18,11 +18,11 @@ extern const int mp_sws_fast_flags;
bool mp_sws_supported_format(int imgfmt);
-void mp_image_swscale(struct mp_image *dst, struct mp_image *src,
- int my_sws_flags);
+int mp_image_swscale(struct mp_image *dst, struct mp_image *src,
+ int my_sws_flags);
-void mp_image_sw_blur_scale(struct mp_image *dst, struct mp_image *src,
- float gblur);
+int mp_image_sw_blur_scale(struct mp_image *dst, struct mp_image *src,
+ float gblur);
struct mp_sws_context {
// Can be set for verbose error printing.