diff options
author | Paul B Mahol <onemda@gmail.com> | 2017-08-05 14:28:45 +0200 |
---|---|---|
committer | Paul B Mahol <onemda@gmail.com> | 2017-08-07 13:09:41 +0200 |
commit | de48710c11cebd4c50bb51ebf3cb5fd0e6a79d40 (patch) | |
tree | 7f75be482d1e5ec17659af7dc6c82187cc12b043 /libswscale/utils.c | |
parent | ab6d89d7ee5cdb4b5e58efbf5bbc2517e39aa705 (diff) | |
download | ffmpeg-de48710c11cebd4c50bb51ebf3cb5fd0e6a79d40.tar.gz |
libswscale: add gray9 support
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r-- | libswscale/utils.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c index 17c996734a..b75510d206 100644 --- a/libswscale/utils.c +++ b/libswscale/utils.c @@ -131,6 +131,8 @@ static const FormatEntry format_entries[AV_PIX_FMT_NB] = { [AV_PIX_FMT_RGB0] = { 1, 1 }, [AV_PIX_FMT_0BGR] = { 1, 1 }, [AV_PIX_FMT_BGR0] = { 1, 1 }, + [AV_PIX_FMT_GRAY9BE] = { 1, 1 }, + [AV_PIX_FMT_GRAY9LE] = { 1, 1 }, [AV_PIX_FMT_GRAY10BE] = { 1, 1 }, [AV_PIX_FMT_GRAY10LE] = { 1, 1 }, [AV_PIX_FMT_GRAY12BE] = { 1, 1 }, @@ -1016,6 +1018,8 @@ static int handle_jpeg(enum AVPixelFormat *format) return 1; case AV_PIX_FMT_GRAY8: case AV_PIX_FMT_YA8: + case AV_PIX_FMT_GRAY9LE: + case AV_PIX_FMT_GRAY9BE: case AV_PIX_FMT_GRAY10LE: case AV_PIX_FMT_GRAY10BE: case AV_PIX_FMT_GRAY12LE: |