Revision 19a00c5e libavcodec/rawdec.c

View differences:

libavcodec/rawdec.c
152 152
        memcpy(frame->data[1], avctx->palctrl->palette, AVPALETTE_SIZE);
153 153
        avctx->palctrl->palette_changed = 0;
154 154
    }
155
    if(avctx->pix_fmt==PIX_FMT_BGR24 && ((frame->linesize[0]+3)&~3)*avctx->height <= buf_size)
156
        frame->linesize[0] = (frame->linesize[0]+3)&~3;
155 157

  
156 158
    if(context->flip)
157 159
        flip(avctx, picture);

Also available in: Unified diff