Commit eb86f72f authored by Paul B Mahol's avatar Paul B Mahol

avfilter/vf_threshold: use correct linesize

Signed-off-by: 's avatarPaul B Mahol <onemda@gmail.com>
parent 9d464dc3
...@@ -155,7 +155,7 @@ static void threshold8(const uint8_t *in, const uint8_t *threshold, ...@@ -155,7 +155,7 @@ static void threshold8(const uint8_t *in, const uint8_t *threshold,
in += ilinesize; in += ilinesize;
threshold += tlinesize; threshold += tlinesize;
min += flinesize; min += flinesize;
max += flinesize; max += slinesize;
out += olinesize; out += olinesize;
} }
} }
...@@ -183,7 +183,7 @@ static void threshold16(const uint8_t *iin, const uint8_t *tthreshold, ...@@ -183,7 +183,7 @@ static void threshold16(const uint8_t *iin, const uint8_t *tthreshold,
in += ilinesize / 2; in += ilinesize / 2;
threshold += tlinesize / 2; threshold += tlinesize / 2;
min += flinesize / 2; min += flinesize / 2;
max += flinesize / 2; max += slinesize / 2;
out += olinesize / 2; out += olinesize / 2;
} }
} }
......
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