Commit 2eab1a17 authored by Michael Niedermayer's avatar Michael Niedermayer

imgconvert: dont depend on default return type for get_color_type()

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4f927542
......@@ -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;
......
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