[MPlayer-cvslog] CVS: main/libmpcodecs vd_ffmpeg.c,1.145,1.146
Rich Felker
dalias at aerifal.cx
Wed Jun 8 06:45:07 CEST 2005
On Tue, Jun 07, 2005 at 08:33:53AM +0200, Jindrich Makovicka CVS wrote:
> 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);
shouldn't this 16 be height? slice height is not constant in general.
for snow it will not be 16...
rich
More information about the MPlayer-cvslog
mailing list