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

Originally committed as revision 12057 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Vitor Sessak 2008-02-15 21:41:38 +00:00
parent ce657d80cc
commit 74b46655d4
1 changed files with 5 additions and 5 deletions

View File

@ -251,12 +251,12 @@ void avfilter_draw_slice(AVFilterLink *link, int y, int h)
if(link->srcpic) { if(link->srcpic) {
avcodec_get_chroma_sub_sample(link->format, &hsub, &vsub); avcodec_get_chroma_sub_sample(link->format, &hsub, &vsub);
src[0] = link->srcpic-> data[0] + y * link->srcpic-> linesize[0]; for(i = 0; i < 4; i ++) {
dst[0] = link->cur_pic->data[0] + y * link->cur_pic->linesize[0];
for(i = 1; i < 4; i ++) {
if(link->srcpic->data[i]) { if(link->srcpic->data[i]) {
src[i] = link->srcpic-> data[i] + (y >> vsub) * link->srcpic-> linesize[i]; src[i] = link->srcpic-> data[i] +
dst[i] = link->cur_pic->data[i] + (y >> vsub) * link->cur_pic->linesize[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 } else
src[i] = dst[i] = NULL; src[i] = dst[i] = NULL;
} }