check for display height when drawing slices

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15679 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
henry 2005-06-07 06:33:51 +00:00
parent a23c484499
commit 14fd015a15
1 changed files with 2 additions and 2 deletions

View File

@ -452,9 +452,9 @@ static void draw_slice(struct AVCodecContext *s,
}else
#endif
#if LIBAVCODEC_BUILD >= 4670
mpcodecs_draw_slice (sh, source, src->linesize, width, height, 0, y);
mpcodecs_draw_slice (sh, source, src->linesize, width, (y+16)<=sh->disp_h?height:sh->disp_h-y, 0, y);
#else
mpcodecs_draw_slice (sh,src, stride, width, height, 0, y);
mpcodecs_draw_slice (sh,src, stride, width, (y+16)<=sh->disp_h?height:sh->disp_h-y, 0, y);
#endif
}