mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-12 10:00:08 +01:00
is_yuv_planar: remove use of PixFmtInfo
This fixes the behavior for a few yuva 16bit formats Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -704,13 +704,12 @@ void ff_shrink88(uint8_t *dst, int dst_wrap,
|
|||||||
/* return true if yuv planar */
|
/* return true if yuv planar */
|
||||||
static inline int is_yuv_planar(enum AVPixelFormat fmt)
|
static inline int is_yuv_planar(enum AVPixelFormat fmt)
|
||||||
{
|
{
|
||||||
const PixFmtInfo *info = &pix_fmt_info[fmt];
|
|
||||||
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
|
const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(fmt);
|
||||||
int i;
|
int i;
|
||||||
int planes[4] = { 0 };
|
int planes[4] = { 0 };
|
||||||
|
|
||||||
if (info->color_type != FF_COLOR_YUV &&
|
if ( desc->flags & PIX_FMT_RGB
|
||||||
info->color_type != FF_COLOR_YUV_JPEG)
|
|| !(desc->flags & PIX_FMT_PLANAR))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* set the used planes */
|
/* set the used planes */
|
||||||
|
|||||||
Reference in New Issue
Block a user