[FFmpeg-devel] [PATCH] lavfi/deshake: fix deshake crash issue.

mypopy at gmail.com mypopy at gmail.com
Thu Sep 20 05:39:37 EEST 2018


On Wed, Sep 19, 2018 at 7:07 PM Michael Niedermayer
<michael at niedermayer.cc> wrote:
>
> On Tue, Sep 18, 2018 at 09:37:29PM +0800, Jun Zhao wrote:
> > Fixes ticket #7441.
> >
> > Signed-off-by: Jun Zhao <mypopydev at gmail.com>
> > ---
> >  libavfilter/vf_deshake.c |   12 +++++++-----
> >  1 files changed, 7 insertions(+), 5 deletions(-)
>
> this doesnt look correct
>
> the blocks that will be used are not going out of array? so the contrast
> calculated from them also should not
>
Do you mean the correct way is changing the pos calculated from:
pos = (y - i) * stride + (x - j);  to  pos = (y + i) * stride + (x + j)  ?


More information about the ffmpeg-devel mailing list