aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec
diff options
context:
space:
mode:
authorVittorio Giovara <vittorio.giovara@gmail.com>2016-04-22 17:28:04 -0400
committerVittorio Giovara <vittorio.giovara@gmail.com>2016-04-26 16:30:18 -0400
commit4b2e69397b84d1c1a29ffae6e9f106f2c32b1869 (patch)
treee1d5747fa8e7a2879a142ed941c2333013188b1d /libavcodec
parent6eb2505855fa832ba7d0a1c2fb9f92c41c5446e3 (diff)
downloadffmpeg-4b2e69397b84d1c1a29ffae6e9f106f2c32b1869.tar.gz
dds: Add support for monochrome images
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/dds.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/dds.c b/libavcodec/dds.c
index f549cadf57..91e0c24226 100644
--- a/libavcodec/dds.c
+++ b/libavcodec/dds.c
@@ -240,6 +240,10 @@ static int parse_pixel_format(AVCodecContext *avctx)
ctx->paletted = 1;
avctx->pix_fmt = AV_PIX_FMT_PAL8;
break;
+ case MKTAG('G', '1', ' ', ' '):
+ ctx->compressed = 0;
+ avctx->pix_fmt = AV_PIX_FMT_MONOBLACK;
+ break;
case MKTAG('D', 'X', '1', '0'):
/* DirectX 10 extra header */
dxgi = bytestream2_get_le32(gbc);