Commit 6ebec104 authored by Derek Buitenhuis's avatar Derek Buitenhuis

Merge commit '02538636'

* commit '02538636':
  dds: Add support for alpha-only files
Merged-by: 's avatarDerek Buitenhuis <derek.buitenhuis@gmail.com>
parents 6c007036 02538636
......@@ -353,6 +353,8 @@ static int parse_pixel_format(AVCodecContext *avctx)
/* 8 bpp */
if (bpp == 8 && r == 0xff && g == 0 && b == 0 && a == 0)
avctx->pix_fmt = AV_PIX_FMT_GRAY8;
else if (bpp == 8 && r == 0 && g == 0 && b == 0 && a == 0xff)
avctx->pix_fmt = AV_PIX_FMT_GRAY8;
/* 16 bpp */
else if (bpp == 16 && r == 0xff && g == 0 && b == 0 && a == 0xff00)
avctx->pix_fmt = AV_PIX_FMT_YA8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment