|
|
@ -557,7 +557,7 @@ static av_cold int initFilter(int16_t **outFilter, int32_t **filterPos, |
|
|
|
filter = av_malloc(filterSize * dstW * sizeof(*filter)); |
|
|
|
filter = av_malloc(filterSize * dstW * sizeof(*filter)); |
|
|
|
if (filterSize >= MAX_FILTER_SIZE * 16 / |
|
|
|
if (filterSize >= MAX_FILTER_SIZE * 16 / |
|
|
|
((flags & SWS_ACCURATE_RND) ? APCK_SIZE : 16) || !filter) { |
|
|
|
((flags & SWS_ACCURATE_RND) ? APCK_SIZE : 16) || !filter) { |
|
|
|
av_log(NULL, AV_LOG_ERROR, "sws: filterSize %d is too large, try less extreem scaling or increase MAX_FILTER_SIZE and recompile\n", filterSize); |
|
|
|
av_log(NULL, AV_LOG_ERROR, "sws: filterSize %d is too large, try less extreme scaling or increase MAX_FILTER_SIZE and recompile\n", filterSize); |
|
|
|
goto fail; |
|
|
|
goto fail; |
|
|
|
} |
|
|
|
} |
|
|
|
*outFilterSize = filterSize; |
|
|
|
*outFilterSize = filterSize; |
|
|
|