Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2016-09-25 17:23:20 +0300
committerLuca Barbato <lu_zero@gentoo.org>2016-09-27 18:17:54 +0300
commite87a501e7d03ac68b58520108fe24ad9d0b36765 (patch)
treec3ac47c76015203beedb4b63f660dbf8fa8a7166 /libswscale/swscale_internal.h
parentde8e096c7eda2bce76efd0a1c1c89d37348c2414 (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.h2
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)