diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-07-06 02:37:28 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-07-08 15:21:48 +0200 |
commit | 1ba01d3d46e8c200a2527ebafc71d5651084586b (patch) | |
tree | 0f3c25ec082182383c4345153b909982ff3f3732 /libswscale/utils.c | |
parent | b86651a208ee67666a7305b002bc9f14b21dae7f (diff) | |
download | ffmpeg-1ba01d3d46e8c200a2527ebafc71d5651084586b.tar.gz |
swscale: treat gray as a fullrage (0-255) format
Fixes Ticket2684
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 fb0a7adb04..5170321176 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -1012,6 +1012,8 @@ static int handle_jpeg(enum AVPixelFormat *format) case AV_PIX_FMT_YUVJ440P: *format = AV_PIX_FMT_YUV440P; return 1; + case AV_PIX_FMT_GRAY8: + return 1; default: return 0; } |