Commit a4598401 authored by vitor's avatar vitor

Simplify

Commited in SoC by Vitor Sessak on 2008-02-11 18:19:37


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@12057 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 365777b6
......@@ -251,12 +251,12 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h)
if(link->srcpic) {
avcodec_get_chroma_sub_sample(link->format, &hsub, &vsub);
src[0] = link->srcpic-> data[0] + y * link->srcpic-> linesize[0];
dst[0] = link->cur_pic->data[0] + y * link->cur_pic->linesize[0];
for(i = 1; i < 4; i ++) {
for(i = 0; i < 4; i ++) {
if(link->srcpic->data[i]) {
src[i] = link->srcpic-> data[i] + (y >> vsub) * link->srcpic-> linesize[i];
dst[i] = link->cur_pic->data[i] + (y >> vsub) * link->cur_pic->linesize[i];
src[i] = link->srcpic-> data[i] +
(y >> (i==0 ? 0 : vsub)) * link->srcpic-> linesize[i];
dst[i] = link->cur_pic->data[i] +
(y >> (i==0 ? 0 : vsub)) * link->cur_pic->linesize[i];
} else
src[i] = dst[i] = NULL;
}
......
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