printf("Mpeg Qz : %d \n",vinfo.quant);
int FFV1_Init(v4linfo *info){int res;	_w=info->width;	_h=info->height;	memcpy(&vinfo,info,sizeof(vinfo));	printf("Quality : %d \n",vinfo.quality);	printf("Keydist : %d \n",vinfo.keydist);	printf("ME      : %d \n",vinfo.me);	if(codec==FF_XVID)		return FFV1_XvidInit(info);	printf("Initializing ffv1 with width =%d, height = %d in YUV420P format\n",info->width,info->height);	_context=avcodec_alloc_context();	memset(&_frame,0,sizeof(_frame));	if(info->ntsc)		_context->frame_rate         	= 29970;	else		_context->frame_rate         	= 25000;	_context->width=info->width;	_context->height=info->height;	_context->frame_rate_base=1000;	_context->strict_std_compliance=-1;		pagesize=info->width*info->height;	_context->pix_fmt		=  PIX_FMT_YUV420P; //PIX_FMT_YV12;	_context->flags		= CODEC_FLAG_QSCALE;	switch(codec)	{		case FF_HUFF: 	res=avcodec_open(_context,&huffyuv_encoder);break;		case FF_FFV1: 	res=avcodec_open(_context,&ffv1_encoder);break;		case FF_MJPEG: res=avcodec_open(_context,&mjpeg_encoder);break;		case FF_MPEG4: res=avcodec_open(_context,&mpeg4_encoder);break;		default: assert(0);	}	if(res<0)		{			printf("cannot init ffencoder");			return 0;		}	_w=info->width;	_h=info->height;	printf("FFV1 init successfull\n");	return 1;}