changeset 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 0fb14001bf06
children f107ccf43d26
files libmpcodecs/vd_vfw.c
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpcodecs/vd_vfw.c	Thu May 16 23:23:16 2002 +0000
+++ b/libmpcodecs/vd_vfw.c	Thu May 16 23:24:47 2002 +0000
@@ -71,7 +71,9 @@
     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");