Mercurial > mplayer.hg
comparison libmpcodecs/vd_vfw.c @ 6105:b77b984120f9
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...
author | arpi |
---|---|
date | Thu, 16 May 2002 23:24:47 +0000 |
parents | f28c734f20b3 |
children | f8e0eac1256c |
comparison
equal
deleted
inserted
replaced
6104:0fb14001bf06 | 6105:b77b984120f9 |
---|---|
69 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ | 69 static mp_image_t* decode(sh_video_t *sh,void* data,int len,int flags){ |
70 mp_image_t* mpi; | 70 mp_image_t* mpi; |
71 int ret; | 71 int ret; |
72 if(len<=0) return NULL; // skipped frame | 72 if(len<=0) return NULL; // skipped frame |
73 | 73 |
74 mpi=mpcodecs_get_image(sh, MP_IMGTYPE_IP, MP_IMGFLAG_ACCEPT_WIDTH, | 74 mpi=mpcodecs_get_image(sh, |
75 (sh->codec->outflags[sh->outfmtidx] & CODECS_FLAG_STATIC) ? | |
76 MP_IMGTYPE_STATIC : MP_IMGTYPE_TEMP, MP_IMGFLAG_ACCEPT_WIDTH, | |
75 sh->disp_w, sh->disp_h); | 77 sh->disp_w, sh->disp_h); |
76 if(!mpi){ // temporary! | 78 if(!mpi){ // temporary! |
77 printf("couldn't allocate image for cinepak codec\n"); | 79 printf("couldn't allocate image for cinepak codec\n"); |
78 return NULL; | 80 return NULL; |
79 } | 81 } |