mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-06 15:49:50 +08:00
sws: readd PAL8 to isPacked()
Fixes PAL8 to YUV conversion.
This commit is contained in:
@ -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 && \
|
||||
|
Reference in New Issue
Block a user