Mercurial > libavcodec.hg
diff png.c @ 4067:8ab58b7bc06b libavcodec
PNG 16-bit gray decoding support
author | kostya |
---|---|
date | Tue, 24 Oct 2006 04:59:46 +0000 |
parents | 9c8ab288ebf6 |
children | 291db895a809 |
line wrap: on
line diff
--- a/png.c Tue Oct 24 04:57:43 2006 +0000 +++ b/png.c Tue Oct 24 04:59:46 2006 +0000 @@ -567,6 +567,9 @@ } else if (s->bit_depth == 8 && s->color_type == PNG_COLOR_TYPE_GRAY) { avctx->pix_fmt = PIX_FMT_GRAY8; + } else if (s->bit_depth == 16 && + s->color_type == PNG_COLOR_TYPE_GRAY) { + avctx->pix_fmt = PIX_FMT_GRAY16BE; } else if (s->bit_depth == 1 && s->color_type == PNG_COLOR_TYPE_GRAY) { avctx->pix_fmt = PIX_FMT_MONOBLACK;