diff options
author | wm4 <wm4@nowhere> | 2014-06-17 22:44:13 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-06-17 22:44:13 +0200 |
commit | d107cae0e7d625e7bbe0a4e73750f5e3f79ea64e (patch) | |
tree | 9e33db39b741cf33ff1781e9021224c5830a2bb7 /video/mp_image.h | |
parent | 72aac9ae8a0053e7c30199044cc2c9493a39b793 (diff) | |
download | mpv-d107cae0e7d625e7bbe0a4e73750f5e3f79ea64e.tar.bz2 mpv-d107cae0e7d625e7bbe0a4e73750f5e3f79ea64e.tar.xz |
video: check image parameters
Make sure every video filter has valid parameters for input and output.
(This also ensures we don't take possibly invalid decoder output, or
feed invalid decodr/filter output to VOs.)
Also, the updated image size check now (almost) works like the
corresponding check in FFmpeg.
Diffstat (limited to 'video/mp_image.h')
-rw-r--r-- | video/mp_image.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/video/mp_image.h b/video/mp_image.h index 70e024bf7f..8282c06df9 100644 --- a/video/mp_image.h +++ b/video/mp_image.h @@ -139,6 +139,7 @@ struct mp_image *mp_image_new_external_ref(struct mp_image *img, void *arg, void mp_image_params_guess_csp(struct mp_image_params *params); +bool mp_image_params_valid(const struct mp_image_params *p); bool mp_image_params_equals(const struct mp_image_params *p1, const struct mp_image_params *p2); |