提交 131609dc 编写于 作者: A Anton Khirnov

sws: readd PAL8 to isPacked()

Fixes PAL8 to YUV conversion.
上级 4bf3c8f2
......@@ -609,9 +609,11 @@ const char *sws_format_name(enum PixelFormat format);
(av_pix_fmt_descriptors[x].nb_components == 2 || \
av_pix_fmt_descriptors[x].nb_components == 4)
#define isPacked(x) \
#define isPacked(x) (\
(av_pix_fmt_descriptors[x].nb_components >= 2 && \
!(av_pix_fmt_descriptors[x].flags & PIX_FMT_PLANAR))
!(av_pix_fmt_descriptors[x].flags & PIX_FMT_PLANAR)) || \
(x) == PIX_FMT_PAL8\
)
#define isPlanar(x) \
(av_pix_fmt_descriptors[x].nb_components >= 2 && \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册