diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-07-03 04:10:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-07-04 23:47:01 +0200 |
commit | fa36f33422ebcf02c84328ea852ecda68d93d830 (patch) | |
tree | c450b34ea2990224ecedd881f3ba260273021319 /libswscale/swscale_internal.h | |
parent | 1f29504204b5d6e250657612c4cda014e27d9e89 (diff) | |
download | ffmpeg-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.h | 4 |
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) |