comparison libmpcodecs/vf_format.c @ 6001:0263a3eabcd7

reset default caps
author arpi
date Mon, 06 May 2002 22:48:59 +0000
parents 1972c3475d93
children 0a7be46617d8
comparison
equal deleted inserted replaced
6000:34e396477d36 6001:0263a3eabcd7
22 return 0; 22 return 0;
23 } 23 }
24 24
25 static int open(vf_instance_t *vf, char* args){ 25 static int open(vf_instance_t *vf, char* args){
26 vf->query_format=query_format; 26 vf->query_format=query_format;
27 vf->default_caps=0;
27 vf->priv=malloc(sizeof(struct vf_priv_s)); 28 vf->priv=malloc(sizeof(struct vf_priv_s));
28 29
29 if(args){ 30 if(args){
30 if(!strcasecmp(args,"yuy2")) vf->priv->fmt=IMGFMT_YUY2; else 31 if(!strcasecmp(args,"yuy2")) vf->priv->fmt=IMGFMT_YUY2; else
31 if(!strcasecmp(args,"yv12")) vf->priv->fmt=IMGFMT_YV12; else 32 if(!strcasecmp(args,"yv12")) vf->priv->fmt=IMGFMT_YV12; else