]> git.sesse.net Git - ffmpeg/commitdiff
avcodec/psd : add support for gray float
authorMartin Vignali <martin.vignali@gmail.com>
Mon, 20 Aug 2018 13:26:07 +0000 (15:26 +0200)
committerMartin Vignali <martin.vignali@gmail.com>
Wed, 22 Aug 2018 09:36:19 +0000 (11:36 +0200)
libavcodec/psd.c

index 66f2ec28d7d59e2b358ddbfcd3f222ca7b492ac2..43814471da14bdcffd5891fdefe6fc9a37d1c704 100644 (file)
@@ -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;