[Mplayer-cvslog] CVS: main/libvo vo_mpegpes.c,1.6,1.7

Arpi of Ize arpi at mplayer.dev.hu
Thu Sep 27 16:22:05 CEST 2001


Update of /cvsroot/mplayer/main/libvo
In directory mplayer:/var/tmp.root/cvs-serv14553

Modified Files:
	vo_mpegpes.c 
Log Message:
Y clipping fixed

Index: vo_mpegpes.c
===================================================================
RCS file: /cvsroot/mplayer/main/libvo/vo_mpegpes.c,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- vo_mpegpes.c	23 Sep 2001 18:42:39 -0000	1.6
+++ vo_mpegpes.c	27 Sep 2001 14:21:56 -0000	1.7
@@ -158,7 +158,7 @@
     codec_context.frame_rate=25*FRAME_RATE_BASE; // !!!!!
     codec_context.gop_size=0; // I frames only
     codec_context.flags=CODEC_FLAG_QSCALE;
-    codec_context.quality=2; // quality!  1..31  (1=best,slowest)
+    codec_context.quality=1; // quality!  1..31  (1=best,slowest)
 
 #if 0
     codec_context.width=width;
@@ -352,7 +352,8 @@
     
     x0+=d_pos_x;
     y0+=d_pos_y;
-    if(w>picture.linesize[0]) w=picture.linesize[0]; // !!
+    if(x0+w>picture.linesize[0]) w=picture.linesize[0]-x0; // !!
+    if(y0+h>codec_context.height) h=codec_context.height-y0;
 
     // Y
     s=srcimg[0]+s_pos_x+s_pos_y*stride[0];




More information about the MPlayer-cvslog mailing list