You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-10 06:10:52 +02:00
cosmetics, remove unused and rename variables for consistency
This commit is contained in:
committed by
Michael Niedermayer
parent
1a0770f3f7
commit
251345a3fe
@@ -623,14 +623,11 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
}
|
}
|
||||||
|
|
||||||
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;
|
||||||
|
Reference in New Issue
Block a user