From c9b12784e91353a0caaac03dda8d74c03d25d8b2 Mon Sep 17 00:00:00 2001
From: Martin Vignali <martin.vignali@gmail.com>
Date: Mon, 20 Aug 2018 15:26:07 +0200
Subject: [PATCH 1/3] avcodec/psd : add support for gray float

---
 libavcodec/psd.c | 2 ++
 1 file changed, 2 insertions(+)

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;
-- 
2.14.3 (Apple Git-98)

