CVS: main/libmpcodecs vd.c,1.39,1.40
Update of /cvsroot/mplayer/main/libmpcodecs In directory mail:/var/tmp.root/cvs-serv26456 Modified Files: vd.c Log Message: setting mpi's w/h to disp_w/h. it fixes mpeg1 crash when height%16!=0 Index: vd.c =================================================================== RCS file: /cvsroot/mplayer/main/libmpcodecs/vd.c,v retrieving revision 1.39 retrieving revision 1.40 diff -u -r1.39 -r1.40 --- vd.c 20 May 2002 03:25:23 -0000 1.39 +++ vd.c 30 May 2002 01:26:07 -0000 1.40 @@ -260,6 +260,10 @@ // returns NULL or allocated mp_image_t* // Note: buffer allocation may be moved to mpcodecs_config_vo() later... mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h){ - return vf_get_image(sh->vfilter,sh->codec->outfmt[sh->outfmtidx],mp_imgtype,mp_imgflag,w,h); + mp_image_t* mpi=vf_get_image(sh->vfilter,sh->codec->outfmt[sh->outfmtidx],mp_imgtype,mp_imgflag,w,h); + mpi->x=mpi->y=0; + mpi->w=sh->disp_w; + mpi->h=sh->disp_h; + return mpi; }
participants (1)
-
Arpi of Ize