OSDN Git Service
(root)
/
android-x86
/
external-ffmpeg.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4de8b60
)
tiff: support reading gray+alpha at 8 bits
author
Carl Eugen Hoyos
<cehoyos@ag.or.at>
Sun, 20 Jul 2014 06:34:19 +0000
(
02:34
-0400)
committer
Vittorio Giovara
<vittorio.giovara@gmail.com>
Sun, 20 Jul 2014 22:32:13 +0000
(23:32 +0100)
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
libavcodec/tiff.c
patch
|
blob
|
history
diff --git
a/libavcodec/tiff.c
b/libavcodec/tiff.c
index
6c72dc8
..
69d55c6
100644
(file)
--- a/
libavcodec/tiff.c
+++ b/
libavcodec/tiff.c
@@
-262,6
+262,9
@@
static int init_image(TiffContext *s, AVFrame *frame)
case 161:
s->avctx->pix_fmt = s->le ? AV_PIX_FMT_GRAY16LE : AV_PIX_FMT_GRAY16BE;
break;
+ case 162:
+ s->avctx->pix_fmt = AV_PIX_FMT_GRAY8A;
+ break;
case 324:
s->avctx->pix_fmt = AV_PIX_FMT_RGBA;
break;