# HG changeset patch # User arpi # Date 1001600516 0 # Node ID b1d663f547254bc3a7023f35b7b2b2377ea34632 # Parent bc7eb13d3f575448c300f86e9c8998c7f9a0a1f2 Y clipping fixed diff -r bc7eb13d3f57 -r b1d663f54725 libvo/vo_mpegpes.c --- a/libvo/vo_mpegpes.c Thu Sep 27 13:21:55 2001 +0000 +++ b/libvo/vo_mpegpes.c Thu Sep 27 14:21:56 2001 +0000 @@ -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];