[FFmpeg-devel] [PATCH]lsws/utils: Make gray10 and gray12 full-scale like gray8 and gray16

Carl Eugen Hoyos cehoyos at ag.or.at
Tue Apr 4 13:33:32 EEST 2017


Hi!

I believe attached patch makes FFmpeg a little more consistent with itself.

Please comment, Carl Eugen
-------------- next part --------------
From 5e1239a6bf3d97b360a447bd88da2e0477ffc0c9 Mon Sep 17 00:00:00 2001
From: Carl Eugen Hoyos <cehoyos at ag.or.at>
Date: Tue, 4 Apr 2017 12:24:41 +0200
Subject: [PATCH] lsws/utils: Make gray10 and gray12 full-scale like gray8 and
 gray16.

---
 libswscale/utils.c   |    4 ++++
 libswscale/version.h |    2 +-
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/libswscale/utils.c b/libswscale/utils.c
index 4c9b53b..17c9967 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -1016,6 +1016,10 @@ static int handle_jpeg(enum AVPixelFormat *format)
         return 1;
     case AV_PIX_FMT_GRAY8:
     case AV_PIX_FMT_YA8:
+    case AV_PIX_FMT_GRAY10LE:
+    case AV_PIX_FMT_GRAY10BE:
+    case AV_PIX_FMT_GRAY12LE:
+    case AV_PIX_FMT_GRAY12BE:
     case AV_PIX_FMT_GRAY16LE:
     case AV_PIX_FMT_GRAY16BE:
     case AV_PIX_FMT_YA16BE:
diff --git a/libswscale/version.h b/libswscale/version.h
index 259ae7a..dcdc85b 100644
--- a/libswscale/version.h
+++ b/libswscale/version.h
@@ -28,7 +28,7 @@
 
 #define LIBSWSCALE_VERSION_MAJOR   4
 #define LIBSWSCALE_VERSION_MINOR   7
-#define LIBSWSCALE_VERSION_MICRO 100
+#define LIBSWSCALE_VERSION_MICRO 101
 
 #define LIBSWSCALE_VERSION_INT  AV_VERSION_INT(LIBSWSCALE_VERSION_MAJOR, \
                                                LIBSWSCALE_VERSION_MINOR, \
-- 
1.7.10.4



More information about the ffmpeg-devel mailing list