From 763360ccad0c074297493378e8c90d11f9a184b0 Mon Sep 17 00:00:00 2001 From: stefano Date: Sun, 3 Jan 2010 15:20:07 +0000 Subject: [PATCH] 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 --- libswscale/swscale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libswscale/swscale.c b/libswscale/swscale.c index 9c49054e8e..c19b0b74f6 100644 --- a/libswscale/swscale.c +++ b/libswscale/swscale.c @@ -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;