diff options
author | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-07 06:33:51 +0000 |
---|---|---|
committer | henry <henry@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2005-06-07 06:33:51 +0000 |
commit | 14fd015a15344203d01e08fee2ef57fba00c9cb9 (patch) | |
tree | e98dc261df14915161b65d6d170814902fb316cc /libmpcodecs | |
parent | a23c48449935aefdf994a1a1915021dc426e9daf (diff) |
check for display height when drawing slices
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15679 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs')
-rw-r--r-- | libmpcodecs/vd_ffmpeg.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libmpcodecs/vd_ffmpeg.c b/libmpcodecs/vd_ffmpeg.c index baa0c0c959..3de2173241 100644 --- a/libmpcodecs/vd_ffmpeg.c +++ b/libmpcodecs/vd_ffmpeg.c @@ -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 } |