Mercurial > mplayer.hg
changeset 15678:e757dbbe39fd
check for display height when drawing slices
author | henry |
---|---|
date | Tue, 07 Jun 2005 06:33:51 +0000 |
parents | 5aae2e679c4c |
children | 7223a4f5ba1a |
files | libmpcodecs/vd_ffmpeg.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/libmpcodecs/vd_ffmpeg.c Tue Jun 07 06:12:09 2005 +0000 +++ b/libmpcodecs/vd_ffmpeg.c Tue Jun 07 06:33:51 2005 +0000 @@ -452,9 +452,9 @@ }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 }