mirror of https://git.ffmpeg.org/ffmpeg.git
sws: readd PAL8 to isPacked()
Fixes PAL8 to YUV conversion.
This commit is contained in:
parent
4bf3c8f226
commit
131609dc2a
|
@ -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 && \
|
||||
|
|
Loading…
Reference in New Issue