sws: readd PAL8 to isPacked()

Fixes PAL8 to YUV conversion.
This commit is contained in:
Anton Khirnov 2011-12-21 06:41:57 +01:00
parent 4bf3c8f226
commit 131609dc2a
1 changed files with 4 additions and 2 deletions

View File

@ -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 && \