Commit 19dc7104 authored by Vitor Sessak's avatar Vitor Sessak

Merge loops

Commited in SoC by Vitor Sessak on 2008-02-10 09:01:31

Originally committed as revision 12046 to svn://svn.ffmpeg.org/ffmpeg/trunk
parent e079d22e
......@@ -261,15 +261,11 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h)
} else
src[i] = dst[i] = NULL;
}
for(j = 0; j < h; j ++) {
memcpy(dst[0], src[0], link->cur_pic->linesize[0]);
src[0] += link->srcpic ->linesize[0];
dst[0] += link->cur_pic->linesize[0];
}
for(i = 1; i < 4; i ++) {
for(i = 0; i < 4; i ++) {
if(!src[i]) continue;
for(j = 0; j < h >> vsub; j ++) {
for(j = 0; j < h >> (i==0 ? 0 : vsub); j ++) {
memcpy(dst[i], src[i], link->cur_pic->linesize[i]);
src[i] += link->srcpic ->linesize[i];
dst[i] += link->cur_pic->linesize[i];
......
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