summaryrefslogtreecommitdiff
path: root/libavcodec/tiff.c
diff options
context:
space:
mode:
authorKostya Shishkov <kostya.shishkov@gmail.com>2006-11-13 11:20:50 +0000
committerKostya Shishkov <kostya.shishkov@gmail.com>2006-11-13 11:20:50 +0000
commitd00026d062a830211515c4e0351e5e08db9b634a (patch)
tree0844e8dcf7b1a2bcc60e640223e64dffb213f059 /libavcodec/tiff.c
parente2570297c05b56a3cf8dd69ebb160c7aadf2197e (diff)
Print error message for unsupported mode (RGB planar,CMYK,YCrCb)
Originally committed as revision 7006 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/tiff.c')
-rw-r--r--libavcodec/tiff.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libavcodec/tiff.c b/libavcodec/tiff.c
index 7d1ea80580..423023cf26 100644
--- a/libavcodec/tiff.c
+++ b/libavcodec/tiff.c
@@ -387,6 +387,12 @@ static int tiff_decode_tag(TiffContext *s, uint8_t *start, uint8_t *buf, uint8_t
case 1:
s->invert = 0;
break;
+ case 2:
+ case 3:
+ break;
+ default:
+ av_log(s->avctx, AV_LOG_ERROR, "Color mode %d is not supported\n", value);
+ return -1;
}
break;
case TIFF_PAL: