# HG changeset patch # User arpi # Date 1022721967 0 # Node ID af0b011c94406c600fabb13c1a8405d73173267f # Parent e2f1b1b8f8b4158f6489462a28a270a9ff6a78f4 setting mpi's w/h to disp_w/h. it fixes mpeg1 crash when height%16!=0 diff -r e2f1b1b8f8b4 -r af0b011c9440 libmpcodecs/vd.c --- a/libmpcodecs/vd.c Thu May 30 00:40:55 2002 +0000 +++ b/libmpcodecs/vd.c Thu May 30 01:26:07 2002 +0000 @@ -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; }