diff libmpcodecs/vd_ffmpeg.c @ 15678:e757dbbe39fd

check for display height when drawing slices
author henry
date Tue, 07 Jun 2005 06:33:51 +0000
parents dff7e79b194f
children 978f2346dc43
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
 }