Prefer enum PixelFormat over int for the type of the format parameter

of getSubSampleFactors().


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30184 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
stefano 2010-01-03 15:20:07 +00:00
parent 2f228574be
commit 763360ccad
1 changed files with 1 additions and 1 deletions

View File

@ -2272,7 +2272,7 @@ static int planarCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli
}
static void getSubSampleFactors(int *h, int *v, int format)
static void getSubSampleFactors(int *h, int *v, enum PixelFormat format)
{
*h = av_pix_fmt_descriptors[format].log2_chroma_w;
*v = av_pix_fmt_descriptors[format].log2_chroma_h;