aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale.c
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-05-19 09:52:40 +0200
committerAnton Khirnov <anton@khirnov.net>2021-07-03 15:29:35 +0200
commite355af9be9756e81e6e6d5a51cfc2853c1e5001e (patch)
tree7b75a160cb1c300b324cda91baf62e06546533e3 /libswscale/swscale.c
parent21a4e48f8807e9e8339086c95f8e468bce431358 (diff)
downloadffmpeg-e355af9be9756e81e6e6d5a51cfc2853c1e5001e.tar.gz
sws: return an error code on invalid parameters to sws_scale()
Diffstat (limited to 'libswscale/swscale.c')
-rw-r--r--libswscale/swscale.c2
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++) {