[MPlayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.145,1.146

Jindrich Makovicka CVS syncmail at mplayerhq.hu
Tue Jun 7 08:33:53 CEST 2005


CVS change done by Jindrich Makovicka CVS

Update of /cvsroot/mplayer/main/libmpcodecs
In directory mail:/var2/tmp/cvs-serv23494

Modified Files:
	vd_ffmpeg.c 
Log Message:
check for display height when drawing slices

Index: vd_ffmpeg.c
===================================================================
RCS file: /cvsroot/mplayer/main/libmpcodecs/vd_ffmpeg.c,v
retrieving revision 1.145
retrieving revision 1.146
diff -u -r1.145 -r1.146
--- vd_ffmpeg.c	25 May 2005 16:29:53 -0000	1.145
+++ vd_ffmpeg.c	7 Jun 2005 06:33:51 -0000	1.146
@@ -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
 }
 




More information about the MPlayer-cvslog mailing list