diff options
author | Carl Eugen Hoyos <cehoyos@ag.or.at> | 2014-03-18 06:19:18 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-19 01:15:15 +0400 |
commit | 37c07d45290cf9cdad061cd5c2af94a2783ba847 (patch) | |
tree | 7dba5b6c96debb30175f248a77c8e5bfc02cca7d /libswscale/utils.c | |
parent | 05d7059ac6b640796001bf347d309a40a4fd4a12 (diff) |
swscale/utils: Fix color range of gray16
Improves rgb -> gray16 conversion
Fixes Ticket3422
The pam and png output files look visually similar, in both cases the
dynamics increase to 0x0 -> 0xfffb.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 4e73853ebb..f2e41671a7 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1055,6 +1055,8 @@ static int handle_jpeg(enum AVPixelFormat *format) *format = AV_PIX_FMT_YUV440P; return 1; case AV_PIX_FMT_GRAY8: + case AV_PIX_FMT_GRAY16LE: + case AV_PIX_FMT_GRAY16BE: return 1; default: return 0; |