changeset 4067:8ab58b7bc06b libavcodec

PNG 16-bit gray decoding support
author kostya
date Tue, 24 Oct 2006 04:59:46 +0000
parents a3f06c7a0bff
children 186e51891c8c
files png.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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;