From 319898bba254105aad2bd50233c3c2867f73695a Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Thu, 10 Sep 2015 14:30:21 +0200 Subject: swscale/utils: handle gray+alpha formats like gray for luma ranges Its illogic to handle gray differently depending on the existence of an alpha channel Signed-off-by: Michael Niedermayer --- libswscale/utils.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'libswscale/utils.c') diff --git a/libswscale/utils.c b/libswscale/utils.c index 777f85e46b..450d0d55df 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -981,8 +981,11 @@ static int handle_jpeg(enum AVPixelFormat *format) *format = AV_PIX_FMT_YUV440P; return 1; case AV_PIX_FMT_GRAY8: + case AV_PIX_FMT_YA8: case AV_PIX_FMT_GRAY16LE: case AV_PIX_FMT_GRAY16BE: + case AV_PIX_FMT_YA16BE: + case AV_PIX_FMT_YA16LE: return 1; default: return 0; -- cgit v1.2.3