Commit ea30ac1e authored by Michael Niedermayer's avatar Michael Niedermayer

avcodec/mjpegdec: Fix indention of ljpeg_decode_yuv_scan()

Reviewed-by: 's avatarPaul B Mahol <onemda@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent dfb5046c
...@@ -1221,25 +1221,25 @@ static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor, ...@@ -1221,25 +1221,25 @@ static int ljpeg_decode_yuv_scan(MJpegDecodeContext *s, int predictor,
|| v * mb_y + y >= s->height) { || v * mb_y + y >= s->height) {
// Nothing to do // Nothing to do
} else if (bits<=8) { } else if (bits<=8) {
ptr = s->picture_ptr->data[c] + (linesize * (v * mb_y + y)) + (h * mb_x + x); //FIXME optimize this crap ptr = s->picture_ptr->data[c] + (linesize * (v * mb_y + y)) + (h * mb_x + x); //FIXME optimize this crap
if(y==0 && toprow){ if(y==0 && toprow){
if(x==0 && leftcol){ if(x==0 && leftcol){
pred= 1 << (bits - 1); pred= 1 << (bits - 1);
}else{ }else{
pred= ptr[-1]; pred= ptr[-1];
} }
}else{
if(x==0 && leftcol){
pred= ptr[-linesize];
}else{ }else{
PREDICT(pred, ptr[-linesize-1], ptr[-linesize], ptr[-1], predictor); if(x==0 && leftcol){
pred= ptr[-linesize];
}else{
PREDICT(pred, ptr[-linesize-1], ptr[-linesize], ptr[-1], predictor);
}
} }
}
if (s->interlaced && s->bottom_field) if (s->interlaced && s->bottom_field)
ptr += linesize >> 1; ptr += linesize >> 1;
pred &= mask; pred &= mask;
*ptr= pred + ((unsigned)dc << point_transform); *ptr= pred + ((unsigned)dc << point_transform);
}else{ }else{
ptr16 = (uint16_t*)(s->picture_ptr->data[c] + 2*(linesize * (v * mb_y + y)) + 2*(h * mb_x + x)); //FIXME optimize this crap ptr16 = (uint16_t*)(s->picture_ptr->data[c] + 2*(linesize * (v * mb_y + y)) + 2*(h * mb_x + x)); //FIXME optimize this crap
if(y==0 && toprow){ if(y==0 && toprow){
......
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