Commit 425c30dd authored by Michael Niedermayer's avatar Michael Niedermayer

sws: loose the minimum dimension checks

A few quick tests show no fundamental problem with such diemnsions
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 733f85b7
...@@ -933,7 +933,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, ...@@ -933,7 +933,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter,
return AVERROR(EINVAL); return AVERROR(EINVAL);
} }
/* sanity check */ /* sanity check */
if (srcW < 4 || srcH < 1 || dstW < 8 || dstH < 1) { if (srcW < 1 || srcH < 1 || dstW < 1 || dstH < 1) {
/* FIXME check if these are enough and try to lower them after /* FIXME check if these are enough and try to lower them after
* fixing the relevant parts of the code */ * fixing the relevant parts of the code */
av_log(c, AV_LOG_ERROR, "%dx%d -> %dx%d is invalid scaling dimension\n", av_log(c, AV_LOG_ERROR, "%dx%d -> %dx%d is invalid scaling dimension\n",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment