summaryrefslogtreecommitdiff
path: root/libavcodec/psd.c
diff options
context:
space:
mode:
authorCarl Eugen Hoyos <cehoyos@ag.or.at>2017-01-11 00:17:59 +0100
committerCarl Eugen Hoyos <cehoyos@ag.or.at>2017-01-11 00:17:59 +0100
commit4313ed511a31ad44c267fc0766ccc0e8daa9fc3f (patch)
treef8a69984f7335a5aad4236f5784334fa30ffe1e1 /libavcodec/psd.c
parentdaff04bd1837442286fcb6b58546a2cc7f5b589d (diff)
lavc/psd: Interpret DUOTONE as GRAYSCALE.
This is what gimp, ImageMagick and FreeImage do and what the Adobe Photoshop file format specification suggests. Fixes a sample from ticket #6045. Reviewed-by: Martin Vignali
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 7587ed9c80..a4830c654f 100644
--- a/libavcodec/psd.c
+++ b/libavcodec/psd.c
@@ -352,6 +352,8 @@ static int decode_frame(AVCodecContext *avctx, void *data,
return AVERROR_PATCHWELCOME;
}
break;
+ case PSD_DUOTONE:
+ av_log(avctx, AV_LOG_WARNING, "ignoring unknwon duotone specification.\n");
case PSD_GRAYSCALE:
if (s->channel_count == 1) {
if (s->channel_depth == 8) {