Commit de5922f1 authored by Vitor Sessak's avatar Vitor Sessak

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
parent 6cecd630
...@@ -240,7 +240,7 @@ static int decode_frame(AVCodecContext *avctx, ...@@ -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;
......
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