diff options
author | Luca Barbato <lu_zero@gentoo.org> | 2016-09-25 17:23:20 +0300 |
---|---|---|
committer | Luca Barbato <lu_zero@gentoo.org> | 2016-09-27 18:17:54 +0300 |
commit | e87a501e7d03ac68b58520108fe24ad9d0b36765 (patch) | |
tree | c3ac47c76015203beedb4b63f660dbf8fa8a7166 /libswscale/swscale_internal.h | |
parent | de8e096c7eda2bce76efd0a1c1c89d37348c2414 (diff) |
swscale: Update bitdepth range check
Make sure the scaling functions for the 9-15bits are used for
9-15bits bit depths correctly.
Diffstat (limited to 'libswscale/swscale_internal.h')
-rw-r--r-- | libswscale/swscale_internal.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libswscale/swscale_internal.h b/libswscale/swscale_internal.h index 84f8dd339f..625bd864a4 100644 --- a/libswscale/swscale_internal.h +++ b/libswscale/swscale_internal.h @@ -569,7 +569,7 @@ static av_always_inline int is9_OR_10BPS(enum AVPixelFormat pix_fmt) { const AVPixFmtDescriptor *desc = av_pix_fmt_desc_get(pix_fmt); av_assert0(desc); - return desc->comp[0].depth == 9 || desc->comp[0].depth == 10; + return desc->comp[0].depth >= 9 && desc->comp[0].depth <= 15; } static av_always_inline int isBE(enum AVPixelFormat pix_fmt) |