summaryrefslogtreecommitdiff
path: root/libavcodec/psd.c
diff options
context:
space:
mode:
authorMartin Vignali <martin.vignali@gmail.com>2018-08-20 15:26:07 +0200
committerMartin Vignali <martin.vignali@gmail.com>2018-08-22 11:36:19 +0200
commit9e64ee3936b1a49842add8dbd5e5d016f4f32103 (patch)
tree968c0a863bf6e3675dfa17f9537cff6284e7b7df /libavcodec/psd.c
parentbdd67546482bd3bdd67b4ae2d855fd1ff989d0d0 (diff)
avcodec/psd : add support for gray float
Diffstat (limited to 'libavcodec/psd.c')
-rw-r--r--libavcodec/psd.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libavcodec/psd.c b/libavcodec/psd.c
index 66f2ec28d7..43814471da 100644
--- a/libavcodec/psd.c
+++ b/libavcodec/psd.c
@@ -369,6 +369,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
avctx->pix_fmt = AV_PIX_FMT_GRAY8;
} else if (s->channel_depth == 16) {
avctx->pix_fmt = AV_PIX_FMT_GRAY16BE;
+ } else if (s->channel_depth == 32) {
+ avctx->pix_fmt = AV_PIX_FMT_GRAYF32BE;
} else {
avpriv_report_missing_feature(avctx, "channel depth %d for grayscale", s->channel_depth);
return AVERROR_PATCHWELCOME;