[SCM] libav/experimental: png: support reading gray+alpha at 16 bits
siretart at users.alioth.debian.org
siretart at users.alioth.debian.org
Sun Aug 10 16:04:11 UTC 2014
The following commit has been merged in the experimental branch:
commit e64f0bf2d2b1347ec9461f0e82852a62e8c6ffbe
Author: Vittorio Giovara <vittorio.giovara at gmail.com>
Date: Sun Jul 20 22:54:27 2014 +0100
png: support reading gray+alpha at 16 bits
diff --git a/libavcodec/pngdec.c b/libavcodec/pngdec.c
index 0c4c91a..fa7f7cc 100644
--- 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;
}
--
Libav/FFmpeg packaging
More information about the pkg-multimedia-commits
mailing list