[FFmpeg-cvslog] sws: loose the minimum dimension checks
Michael Niedermayer
git at videolan.org
Sat Oct 27 17:03:05 CEST 2012
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sat Oct 27 16:54:31 2012 +0200| [425c30ddae3e6f36b80edad192a6108bfa50277e] | committer: Michael Niedermayer
sws: loose the minimum dimension checks
A few quick tests show no fundamental problem with such diemnsions
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=425c30ddae3e6f36b80edad192a6108bfa50277e
---
libswscale/utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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",
More information about the ffmpeg-cvslog
mailing list