• Jun Zhao's avatar
    lavfi/deshake: fix deshake crash issue. · 5a3ce4a9
    Jun Zhao authored
    Fixes ticket #7441.
    
    for block contrast calculate, the block is like this:
    
    |<---------------- stride-----------------------|
    +----------------------------------------------->  X
    |
    |            w = 16
    |    (cx,cy)+------+
    |           |      |
    |h=blocksize|      |
    |           |      |
    |           +------+
    V
    
    Y
    
    so we calc the block contrast use:
       (cy + y) * stride + (cx + x)
    Signed-off-by: 's avatarJun Zhao <mypopydev@gmail.com>
    5a3ce4a9
vf_deshake.c 20.5 KB