]> git.sesse.net Git - ffmpeg/commit
avfilter/vf_minterpolate: Fix left shift of negative value
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Tue, 6 Oct 2020 12:52:11 +0000 (14:52 +0200)
committerAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Fri, 9 Oct 2020 14:38:28 +0000 (16:38 +0200)
commitaa262dcce850e7d0361bb6c78d833f7249543712
tree65721cc00a461af5c6b615d5a9b432f9e3c7ee42
parentbb13cdbe279d92f595243a9b3e2b91fb48cf146c
avfilter/vf_minterpolate: Fix left shift of negative value

This has happened when initializing the motion estimation context if
width or height of the video was smaller than the block size used
for motion estimation and if the motion interpolation mode indicates
not to use motion estimation.

The solution is of course to only initialize the motion estimation
context if the interpolation mode uses motion estimation.

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