diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-05-19 09:52:40 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-07-03 15:29:35 +0200 |
commit | e355af9be9756e81e6e6d5a51cfc2853c1e5001e (patch) | |
tree | 7b75a160cb1c300b324cda91baf62e06546533e3 | |
parent | 21a4e48f8807e9e8339086c95f8e468bce431358 (diff) | |
download | ffmpeg-e355af9be9756e81e6e6d5a51cfc2853c1e5001e.tar.gz |
sws: return an error code on invalid parameters to sws_scale()
-rw-r--r-- | libswscale/swscale.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 05e716dcc9..9743c56295 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -833,7 +833,7 @@ int attribute_align_arg sws_scale(struct SwsContext *c, if (!srcStride || !dstStride || !dst || !srcSlice) { av_log(c, AV_LOG_ERROR, "One of the input parameters to sws_scale() is NULL, please check the calling code\n"); - return 0; + return AVERROR(EINVAL); } for (i=0; i<4; i++) { |