]> git.sesse.net Git - ffmpeg/commitdiff
imgconvert: dont depend on default return type for get_color_type()
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Dec 2012 00:34:26 +0000 (01:34 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 26 Dec 2012 00:34:26 +0000 (01:34 +0100)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavcodec/imgconvert.c

index 030810c916de593a7cf84053497ced3f2036b2d6..66ce9cd0d96cf9e6d76d23f179851e849f2fd8fd 100644 (file)
@@ -69,7 +69,7 @@ void avcodec_get_chroma_sub_sample(enum AVPixelFormat pix_fmt, int *h_shift, int
     *v_shift = desc->log2_chroma_h;
 }
 
-static get_color_type(AVPixFmtDescriptor *desc) {
+static int get_color_type(AVPixFmtDescriptor *desc) {
     if(desc->nb_components == 1 || desc->nb_components == 2)
         return FF_COLOR_GRAY;