Commit 251345a3 authored by Jean First's avatar Jean First Committed by Michael Niedermayer

cosmetics, remove unused and rename variables for consistency

parent 1a0770f3
...@@ -614,23 +614,20 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -614,23 +614,20 @@ static int decode_frame(AVCodecContext *avctx,
dst += stride; dst += stride;
} }
} else { } else {
for(i = 0; i < s->height; i++) { for(i = 0; i < s->height; i++) {
for(j = soff; j < ssize; j++) for(j = soff; j < ssize; j++)
dst[j] += dst[j - soff]; dst[j] += dst[j - soff];
dst += stride; dst += stride;
} }
} }
} }
if(s->invert){ if(s->invert){
uint8_t *src; dst = s->picture.data[0];
int j; for(i = 0; i < s->height; i++){
for(j = 0; j < s->picture.linesize[0]; j++)
src = s->picture.data[0]; dst[j] = (s->avctx->pix_fmt == PIX_FMT_PAL8 ? (1<<s->bpp) - 1 : 255) - dst[j];
for(j = 0; j < s->height; j++){ dst += s->picture.linesize[0];
for(i = 0; i < s->picture.linesize[0]; i++)
src[i] = (s->avctx->pix_fmt == PIX_FMT_PAL8 ? (1<<s->bpp) - 1 : 255) - src[i];
src += s->picture.linesize[0];
} }
} }
*picture= *(AVFrame*)&s->picture; *picture= *(AVFrame*)&s->picture;
......
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