diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-27 16:54:31 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-27 16:54:31 +0200 |
commit | 425c30ddae3e6f36b80edad192a6108bfa50277e (patch) | |
tree | 63bca6d814dcc36b0bd696d5eb462f1ee332079b /libswscale/utils.c | |
parent | 733f85b7ae02f2e386f0f605bf12c639f2d742fa (diff) | |
download | ffmpeg-streaming-425c30ddae3e6f36b80edad192a6108bfa50277e.zip ffmpeg-streaming-425c30ddae3e6f36b80edad192a6108bfa50277e.tar.gz |
sws: loose the minimum dimension checks
A few quick tests show no fundamental problem with such diemnsions
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index b27dc92..e300cae 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -933,7 +933,7 @@ av_cold int sws_init_context(SwsContext *c, SwsFilter *srcFilter, return AVERROR(EINVAL); } /* 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 * fixing the relevant parts of the code */ av_log(c, AV_LOG_ERROR, "%dx%d -> %dx%d is invalid scaling dimension\n", |