for(i=0; i<c->vChrBufSize*2; i++)
for(i=0; i<c->vChrBufSize; i++)
void freeSwsContext(SwsContext *c){	int i;	if(!c) return;	if(c->lumPixBuf)	{		for(i=0; i<c->vLumBufSize*2; i++)		{			if(c->lumPixBuf[i]) free(c->lumPixBuf[i]);			c->lumPixBuf[i]=NULL;		}		free(c->lumPixBuf);		c->lumPixBuf=NULL;	}	if(c->chrPixBuf)	{		for(i=0; i<c->vChrBufSize*2; i++)		{			if(c->chrPixBuf[i]) free(c->chrPixBuf[i]);			c->chrPixBuf[i]=NULL;		}		free(c->chrPixBuf);		c->chrPixBuf=NULL;	}	if(c->vLumFilter) free(c->vLumFilter);	c->vLumFilter = NULL;	if(c->vChrFilter) free(c->vChrFilter);	c->vChrFilter = NULL;	if(c->hLumFilter) free(c->hLumFilter);	c->hLumFilter = NULL;	if(c->hChrFilter) free(c->hChrFilter);	c->hChrFilter = NULL;	if(c->vLumFilterPos) free(c->vLumFilterPos);	c->vLumFilterPos = NULL;	if(c->vChrFilterPos) free(c->vChrFilterPos);	c->vChrFilterPos = NULL;	if(c->hLumFilterPos) free(c->hLumFilterPos);	c->hLumFilterPos = NULL;	if(c->hChrFilterPos) free(c->hChrFilterPos);	c->hChrFilterPos = NULL;	if(c->lumMmxFilter) free(c->lumMmxFilter);	c->lumMmxFilter = NULL;	if(c->chrMmxFilter) free(c->chrMmxFilter);	c->chrMmxFilter = NULL;	free(c);}