[Ffmpeg-cvslog] r6779 - trunk/libavcodec/png.c

kostya subversion
Tue Oct 24 06:59:47 CEST 2006


Author: kostya
Date: Tue Oct 24 06:59:46 2006
New Revision: 6779

Modified:
   trunk/libavcodec/png.c

Log:
PNG 16-bit gray decoding support

Modified: trunk/libavcodec/png.c
==============================================================================
--- trunk/libavcodec/png.c	(original)
+++ trunk/libavcodec/png.c	Tue Oct 24 06:59:46 2006
@@ -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;




More information about the ffmpeg-cvslog mailing list