diff options
author | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-16 23:24:47 +0000 |
---|---|---|
committer | arpi <arpi@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2002-05-16 23:24:47 +0000 |
commit | cd59a26deefb150307073c97fd2fe98905a67542 (patch) | |
tree | 13251b0600aef514bc8a8cbe82dd95a608bc72ab /libmpcodecs/vd_vfw.c | |
parent | e6c9966c8feb71e4cd4102da5b23e1b039223f93 (diff) | |
download | mpv-cd59a26deefb150307073c97fd2fe98905a67542.tar.bz2 mpv-cd59a26deefb150307073c97fd2fe98905a67542.tar.xz |
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
Diffstat (limited to 'libmpcodecs/vd_vfw.c')
-rw-r--r-- | libmpcodecs/vd_vfw.c | 4 |
1 files changed, 3 insertions, 1 deletions
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"); |