Hi! Attached patch does what other applications do with duotone and fixes the provided sample.
Please comment, Carl Eugen
From 32f777d3a63007a91ab3c08990bface1bbf79be9 Mon Sep 17 00:00:00 2001 From: Carl Eugen Hoyos <ceho...@ag.or.at> Date: Tue, 10 Jan 2017 17:49:31 +0100 Subject: [PATCH] lavc/psd: Interpret DUOTONE as GRAYSCALE. Fixes a sample from ticket #6045. --- libavcodec/psd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/libavcodec/psd.c b/libavcodec/psd.c index 7587ed9..a71082d 100644 --- a/libavcodec/psd.c +++ b/libavcodec/psd.c @@ -352,6 +352,7 @@ static int decode_frame(AVCodecContext *avctx, void *data, return AVERROR_PATCHWELCOME; } break; + case PSD_DUOTONE: case PSD_GRAYSCALE: if (s->channel_count == 1) { if (s->channel_depth == 8) { -- 1.7.10.4
_______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel