Commit 8c582d1b authored by Michael Niedermayer's avatar Michael Niedermayer

avfilter/vf_removelogo: fix offset for accessing pixels above and below

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 8c0687ab
...@@ -174,8 +174,8 @@ static void convert_mask_to_strength_mask(uint8_t *data, int linesize, ...@@ -174,8 +174,8 @@ static void convert_mask_to_strength_mask(uint8_t *data, int linesize,
if ( *current_pixel >= current_pass && if ( *current_pixel >= current_pass &&
*(current_pixel + 1) >= current_pass && *(current_pixel + 1) >= current_pass &&
*(current_pixel - 1) >= current_pass && *(current_pixel - 1) >= current_pass &&
*(current_pixel + w) >= current_pass && *(current_pixel + linesize) >= current_pass &&
*(current_pixel - w) >= current_pass) { *(current_pixel - linesize) >= current_pass) {
/* Increment the value since it still has not been /* Increment the value since it still has not been
* eroded, as evidenced by the if statement that * eroded, as evidenced by the if statement that
* just evaluated to true. */ * just evaluated to true. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment