Commit 5dcdb8b6 authored by michael's avatar michael

fix y scale of mv vissualization of interlaced MVs


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3033 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 88f45e03
......@@ -1738,9 +1738,13 @@ void ff_print_debug_info(MpegEncContext *s, AVFrame *pict){
int sx=mb_x*16 + 8;
int sy=mb_y*16 + 4 + 8*i;
int xy= mb_x*2 + (mb_y*2 + i)*s->b8_stride;
int mx=(pict->motion_val[direction][xy][0]>>shift) + sx;
int my=(pict->motion_val[direction][xy][1]>>shift) + sy;
draw_arrow(ptr, sx, sy, mx, my, s->width, s->height, s->linesize, 100);
int mx=(pict->motion_val[direction][xy][0]>>shift);
int my=(pict->motion_val[direction][xy][1]>>shift);
if(IS_INTERLACED(pict->mb_type[mb_index]))
my*=2;
draw_arrow(ptr, sx, sy, mx+sx, my+sy, s->width, s->height, s->linesize, 100);
}
}else{
int sx= mb_x*16 + 8;
......
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