projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2257165
)
png: support reading gray+alpha at 16 bits
author
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sun, 20 Jul 2014 21:54:27 +0000
(22:54 +0100)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Mon, 4 Aug 2014 11:57:38 +0000
(12:57 +0100)
libavcodec/pngdec.c
patch
|
blob
|
history
diff --git
a/libavcodec/pngdec.c
b/libavcodec/pngdec.c
index
0c4c91a
..
fa7f7cc
100644
(file)
--- a/
libavcodec/pngdec.c
+++ b/
libavcodec/pngdec.c
@@
-500,6
+500,9
@@
static int decode_frame(AVCodecContext *avctx,
} else if (s->bit_depth == 8 &&
s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
avctx->pix_fmt = AV_PIX_FMT_YA8;
+ } else if (s->bit_depth == 16 &&
+ s->color_type == PNG_COLOR_TYPE_GRAY_ALPHA) {
+ avctx->pix_fmt = AV_PIX_FMT_YA16BE;
} else {
goto fail;
}