]> git.sesse.net Git - ffmpeg/commit
avfilter/vf_minterpolate: Reject too small dimensions
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 6 Oct 2020 12:35:25 +0000 (14:35 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 9 Oct 2020 14:38:28 +0000 (16:38 +0200)
commitbb13cdbe279d92f595243a9b3e2b91fb48cf146c
treeb65e662de91dbb843da2a04f1372c72bb86b9a3c
parent0d156eb58a2bfb136c6481611fad7505b3a2c0c1
avfilter/vf_minterpolate: Reject too small dimensions

The latter code relies upon the dimensions to be not too small;
otherwise one will call av_clip() with min > max lateron which aborts
in case ASSERT_LEVEL is >= 2 or one will get a nonsense result that may
lead to a heap-buffer-overflow/underflow. The latter has happened in
ticket #8248 which this commit fixes.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/vf_minterpolate.c