# HG changeset patch # User kostya # Date 1161665986 0 # Node ID 8ab58b7bc06b551df8581f2eababbc98b2b7f5e5 # Parent a3f06c7a0bffa82af1de741aeea58227b05ce54d PNG 16-bit gray decoding support diff -r a3f06c7a0bff -r 8ab58b7bc06b png.c --- 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;