setting mpi's w/h to disp_w/h. it fixes mpeg1 crash when height%16!=0

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6235 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
arpi 2002-05-30 01:26:07 +00:00
parent 346b7d622c
commit 2b95bb17a1
1 changed files with 5 additions and 1 deletions

View File

@ -260,6 +260,10 @@ csp_again:
// 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;
}