tiffdec: rename variables for consistency and fix variable shadowing
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
This commit is contained in:
parent
d9a542ace1
commit
bf2064f046
@ -665,14 +665,11 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (s->invert) {
|
if (s->invert) {
|
||||||
uint8_t *src;
|
dst = p->data[0];
|
||||||
int j;
|
for (i = 0; i < s->height; i++) {
|
||||||
|
for (j = 0; j < p->linesize[0]; j++)
|
||||||
src = p->data[0];
|
dst[j] = 255 - dst[j];
|
||||||
for (j = 0; j < s->height; j++) {
|
dst += stride;
|
||||||
for (i = 0; i < p->linesize[0]; i++)
|
|
||||||
src[i] = 255 - src[i];
|
|
||||||
src += p->linesize[0];
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
*got_frame = 1;
|
*got_frame = 1;
|
||||||
|
Loading…
Reference in New Issue
Block a user