From cd59a26deefb150307073c97fd2fe98905a67542 Mon Sep 17 00:00:00 2001 From: arpi Date: Thu, 16 May 2002 23:24:47 +0000 Subject: iive is right - we shouldn't use IP buffering for vfw. it was changed to test DR support but i forgot to remove that later :( 10l is mine... git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6106 b3059339-0415-0410-9bf9-f77b7e298cf2 --- libmpcodecs/vd_vfw.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libmpcodecs/vd_vfw.c b/libmpcodecs/vd_vfw.c index 337bdfb8dc..97fe2cee31 100644 --- a/libmpcodecs/vd_vfw.c +++ b/libmpcodecs/vd_vfw.c @@ -71,7 +71,9 @@ static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ int ret; if(len<=0) return NULL; // skipped frame - mpi=mpcodecs_get_image(sh, MP_IMGTYPE_IP, MP_IMGFLAG_ACCEPT_WIDTH, + mpi=mpcodecs_get_image(sh, + (sh->codec->outflags[sh->outfmtidx] & CODECS_FLAG_STATIC) ? + MP_IMGTYPE_STATIC : MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_WIDTH, sh->disp_w, sh->disp_h); if(!mpi){ // temporary! printf("couldn't allocate image for cinepak codec\n"); -- cgit v1.2.3