mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
ff_find_pix_fmt: return NONE for the "not found" case.
Found-by: durandal_1707 Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
ff6b34009d
commit
86159703f5
@ -87,7 +87,7 @@ enum AVPixelFormat ff_find_pix_fmt(const PixelFormatTag *tags, unsigned int four
|
|||||||
return tags->pix_fmt;
|
return tags->pix_fmt;
|
||||||
tags++;
|
tags++;
|
||||||
}
|
}
|
||||||
return AV_PIX_FMT_YUV420P;
|
return AV_PIX_FMT_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_cold int raw_init_decoder(AVCodecContext *avctx)
|
static av_cold int raw_init_decoder(AVCodecContext *avctx)
|
||||||
|
Loading…
Reference in New Issue
Block a user