aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul B Mahol <onemda@gmail.com>2018-05-05 21:50:22 +0200
committerPaul B Mahol <onemda@gmail.com>2018-05-05 21:50:22 +0200
commit72b29c02f4ba0609da45433eb9706b38ac583a01 (patch)
tree79c681c1fbb6f2bc097240a1d52079bb8cc4e660
parent41ebbae9dd65edbdaa1006a685c98e3016d9c48e (diff)
downloadffmpeg-72b29c02f4ba0609da45433eb9706b38ac583a01.tar.gz
avfilter/drawutils: support gray14
Signed-off-by: Paul B Mahol <onemda@gmail.com>
-rw-r--r--libavfilter/drawutils.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavfilter/drawutils.c b/libavfilter/drawutils.c
index 650ef25aba..5f4cb548f0 100644
--- a/libavfilter/drawutils.c
+++ b/libavfilter/drawutils.c
@@ -271,7 +271,8 @@ void ff_draw_color(FFDrawContext *draw, FFDrawColor *color, const uint8_t rgba[4
draw->format == AV_PIX_FMT_GRAY16LE || draw->format == AV_PIX_FMT_YA16LE ||
draw->format == AV_PIX_FMT_GRAY9LE ||
draw->format == AV_PIX_FMT_GRAY10LE ||
- draw->format == AV_PIX_FMT_GRAY12LE) {
+ draw->format == AV_PIX_FMT_GRAY12LE ||
+ draw->format == AV_PIX_FMT_GRAY14LE) {
const AVPixFmtDescriptor *desc = draw->desc;
color->comp[0].u8[0] = RGB_TO_Y_CCIR(rgba[0], rgba[1], rgba[2]);
EXPAND(0);