# HG changeset patch # User henry # Date 1118126031 0 # Node ID e757dbbe39fd98f0bb5ce7cec50e32ade5a67971 # Parent 5aae2e679c4cbf91b21b6b56f89e0182d92596a5 check for display height when drawing slices diff -r 5aae2e679c4c -r e757dbbe39fd libmpcodecs/vd_ffmpeg.c --- 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 }