projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4bf3c8f
)
sws: readd PAL8 to isPacked()
author
Anton Khirnov
<anton@khirnov.net>
Wed, 21 Dec 2011 05:41:57 +0000
(06:41 +0100)
committer
Anton Khirnov
<anton@khirnov.net>
Thu, 22 Dec 2011 10:01:28 +0000
(11:01 +0100)
Fixes PAL8 to YUV conversion.
libswscale/swscale_internal.h
patch
|
blob
|
history
diff --git
a/libswscale/swscale_internal.h
b/libswscale/swscale_internal.h
index
5055443
..
bb3b52d
100644
(file)
--- 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 && \