mirror of
https://github.com/xenia-project/FFmpeg.git
synced 2024-11-24 12:09:55 +00:00
imgconvert: dont depend on default return type for get_color_type()
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
4f927542fb
commit
2eab1a178c
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user