mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
avi bgr24 padding fix.
Fixes issue1901 Originally committed as revision 22997 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
d0dedce71d
commit
19a00c5eb2
@ -152,6 +152,8 @@ static int raw_decode(AVCodecContext *avctx,
|
||||
memcpy(frame->data[1], avctx->palctrl->palette, AVPALETTE_SIZE);
|
||||
avctx->palctrl->palette_changed = 0;
|
||||
}
|
||||
if(avctx->pix_fmt==PIX_FMT_BGR24 && ((frame->linesize[0]+3)&~3)*avctx->height <= buf_size)
|
||||
frame->linesize[0] = (frame->linesize[0]+3)&~3;
|
||||
|
||||
if(context->flip)
|
||||
flip(avctx, picture);
|
||||
|
Loading…
Reference in New Issue
Block a user