sws: return an error code on invalid parameters to sws_scale()

This commit is contained in:
Anton Khirnov 2021-05-19 09:52:40 +02:00
parent 21a4e48f88
commit e355af9be9
1 changed files with 1 additions and 1 deletions

View File

@ -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++) {