Mercurial > mplayer.hg
comparison libmpcodecs/vd.c @ 6234:af0b011c9440
setting mpi's w/h to disp_w/h. it fixes mpeg1 crash when height%16!=0
author | arpi |
---|---|
date | Thu, 30 May 2002 01:26:07 +0000 |
parents | 523014df7d32 |
children | d253cf4f43a9 |
comparison
equal
deleted
inserted
replaced
6233:e2f1b1b8f8b4 | 6234:af0b011c9440 |
---|---|
258 // mp_imgtype: buffering type, see mp_image.h | 258 // mp_imgtype: buffering type, see mp_image.h |
259 // mp_imgflag: buffer requirements (read/write, preserve, stride limits), see mp_image.h | 259 // mp_imgflag: buffer requirements (read/write, preserve, stride limits), see mp_image.h |
260 // returns NULL or allocated mp_image_t* | 260 // returns NULL or allocated mp_image_t* |
261 // Note: buffer allocation may be moved to mpcodecs_config_vo() later... | 261 // Note: buffer allocation may be moved to mpcodecs_config_vo() later... |
262 mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h){ | 262 mp_image_t* mpcodecs_get_image(sh_video_t *sh, int mp_imgtype, int mp_imgflag, int w, int h){ |
263 return vf_get_image(sh->vfilter,sh->codec->outfmt[sh->outfmtidx],mp_imgtype,mp_imgflag,w,h); | 263 mp_image_t* mpi=vf_get_image(sh->vfilter,sh->codec->outfmt[sh->outfmtidx],mp_imgtype,mp_imgflag,w,h); |
264 mpi->x=mpi->y=0; | |
265 mpi->w=sh->disp_w; | |
266 mpi->h=sh->disp_h; | |
267 return mpi; | |
264 } | 268 } |
265 | 269 |