aboutsummaryrefslogtreecommitdiffstats
path: root/libswscale/swscale_internal.h
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2012-07-03 04:10:11 +0200
committerMichael Niedermayer <michaelni@gmx.at>2012-07-04 23:47:01 +0200
commitfa36f33422ebcf02c84328ea852ecda68d93d830 (patch)
treec450b34ea2990224ecedd881f3ba260273021319 /libswscale/swscale_internal.h
parent1f29504204b5d6e250657612c4cda014e27d9e89 (diff)
downloadffmpeg-fa36f33422ebcf02c84328ea852ecda68d93d830.tar.gz
sws: support 12&14 bit planar colorspaces
Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r--libswscale/swscale_internal.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h
index ae53b88e7f..5a584f04ca 100644
--- a/libswscale/swscale_internal.h
+++ b/libswscale/swscale_internal.h
@@ -558,8 +558,8 @@ const char *sws_format_name(enum PixelFormat format);
(av_pix_fmt_descriptors[x].comp[0].depth_minus1 == 15)
#define is9_OR_10BPS(x) \
- (av_pix_fmt_descriptors[x].comp[0].depth_minus1 == 8 || \
- av_pix_fmt_descriptors[x].comp[0].depth_minus1 == 9)
+ (av_pix_fmt_descriptors[x].comp[0].depth_minus1 >= 8 && \
+ av_pix_fmt_descriptors[x].comp[0].depth_minus1 <= 13)
#define isNBPS(x) is9_OR_10BPS(x)