You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
sws: return an error code on invalid parameters to sws_scale()
This commit is contained in:
@@ -833,7 +833,7 @@ int attribute_align_arg sws_scale(struct SwsContext *c,
|
|||||||
|
|
||||||
if (!srcStride || !dstStride || !dst || !srcSlice) {
|
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");
|
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++) {
|
for (i=0; i<4; i++) {
|
||||||
|
Reference in New Issue
Block a user