[FFmpeg-cvslog] sws: readd PAL8 to isPacked()
Anton Khirnov
git at videolan.org
Fri Dec 23 03:37:58 CET 2011
ffmpeg | branch: master | Anton Khirnov <anton at khirnov.net> | Wed Dec 21 06:41:57 2011 +0100| [131609dc2a75e6783396853023d6f49333e3f495] | committer: Anton Khirnov
sws: readd PAL8 to isPacked()
Fixes PAL8 to YUV conversion.
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=131609dc2a75e6783396853023d6f49333e3f495
---
libswscale/swscale_internal.h | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index 5055443..bb3b52d 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -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 && \
More information about the ffmpeg-cvslog
mailing list