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

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2013-10-12 11:35:54 +02:00
parent 8c0687abdf
commit 8c582d1b22
1 changed files with 2 additions and 2 deletions

View File

@ -174,8 +174,8 @@ static void convert_mask_to_strength_mask(uint8_t *data, int linesize,
if ( *current_pixel >= current_pass &&
*(current_pixel + 1) >= current_pass &&
*(current_pixel - 1) >= current_pass &&
*(current_pixel + w) >= current_pass &&
*(current_pixel - w) >= current_pass) {
*(current_pixel + linesize) >= current_pass &&
*(current_pixel - linesize) >= current_pass) {
/* Increment the value since it still has not been
* eroded, as evidenced by the if statement that
* just evaluated to true. */