OSDN Git Service
(root)
/
coroid
/
libav_saccubus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
34380af
)
PNG 16-bit gray decoding support
author
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 24 Oct 2006 04:59:46 +0000
(
04:59
+0000)
committer
Kostya Shishkov
<kostya.shishkov@gmail.com>
Tue, 24 Oct 2006 04:59:46 +0000
(
04:59
+0000)
Originally committed as revision 6779 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/png.c
patch
|
blob
|
history
diff --git
a/libavcodec/png.c
b/libavcodec/png.c
index
6d588c3
..
a257492
100644
(file)
--- a/
libavcodec/png.c
+++ b/
libavcodec/png.c
@@
-567,6
+567,9
@@
static int decode_frame(AVCodecContext *avctx,
} 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;