Commit a5937e80 authored by stefano's avatar stefano

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

of getSubSampleFactors().


git-svn-id: file:///var/local/repositories/mplayer/trunk/libswscale@30184 b3059339-0415-0410-9bf9-f77b7e298cf2
parent 9960a929
...@@ -2272,7 +2272,7 @@ static int planarCopy(SwsContext *c, uint8_t* src[], int srcStride[], int srcSli ...@@ -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; *h = av_pix_fmt_descriptors[format].log2_chroma_w;
*v = av_pix_fmt_descriptors[format].log2_chroma_h; *v = av_pix_fmt_descriptors[format].log2_chroma_h;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment