mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-03-23 19:37:42 +00:00
For every line, copy 3*width bytes instead of linesize[0] to avoid
problems with padding. Fix issue 959 Originally committed as revision 18512 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
6cecd63005
commit
de5922f179
@ -240,7 +240,7 @@ static int decode_frame(AVCodecContext *avctx,
|
|||||||
for(y=0; y<avctx->height; y++)
|
for(y=0; y<avctx->height; y++)
|
||||||
memcpy(&f->data[0][ (avctx->height-y)*f->linesize[0] ],
|
memcpy(&f->data[0][ (avctx->height-y)*f->linesize[0] ],
|
||||||
&buf[y*avctx->width*3],
|
&buf[y*avctx->width*3],
|
||||||
f->linesize[0]);
|
3*avctx->width);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user