case 'Z': info.quant=1;break;
void parseRcFile( void ){   char rcfile[1024];   char string[1024];   char *home;   char *optarg;   FILE *fd;	if( ! (home=getenv("HOME")) ){		fprintf(stderr,"can't determine $HOME.\n");		exit(0);	}	snprintf(rcfile, 1024, "%s/.ffv1recrc", home);	rcfile[1023] = '\0';	fd=fopen(rcfile,"rt");	if(!fd)	{		printf("No ~/.ffv1recrc found...\n");		return;	}	while(fgets(string,1000,fd))	{		optarg=NULL;		if(  (string[strlen(string)-1]==0xa)				||		(string[strlen(string)-1]==0xd) )		{			string[strlen(string)-1]=0;		}		switch(strlen(string))		{			case 0:					break;			case 1: // No arg			case 2:					switch(string[0])					{							case '#': break;							case '2': do_split=1;break;   							case 'p': info.ntsc = 0;  break;      							case 'n': info.ntsc = 1;  break;      							case 's': info.ntsc = 0; info.secam=1;  break;   							case 'z': recordaudio = 0;printf("\n Audio disabled\n");   break;   							case 'Q': quiet = 1;   break;							default : printf("Unknown command : %c\n",string[0]);					}					break;			case 3:			default:					if(string[1]!='=' && string[0]!='#')					{						printf("\n ** The format is x=y not x y!!! (%c)\n",string[0]);						break;					}					optarg=string+2;					switch(string[0])					{      						case 'b': ainfo.frequency=atoi(optarg);break;      						case 'q': info.quality = atoi(optarg); break;      						case 'd': if(!(info.keydist = atoi(optarg))) info.keydist=1; break;      						case 'M': info.me = atoi(optarg); break;      						case 'S': info.channel = atoi(optarg); break;      						case 'W': info.width = atoi(optarg);  break;      						case 'H': info.height = atoi(optarg);  break;      						case 't': drec = atof(optarg);  break;      						case 'x': videomegs = atoi(optarg);  break;      						case 'C': if(!FFV1_selectByName(optarg))      								{										printf("\n cannot find this codec <%s>\n",optarg);										exit(0);								};break;      						case 'y': audiomegs = atoi(optarg);  break;      						case 'f': info.frequency = atof(optarg); break;      						case 'A': audiodevice = optarg;   break;      						case 'V': videodevice = optarg;   break;      						case 'h': usage();  break;					}					break;	}  }fclose(fd);}