diff options
author | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-11-13 11:20:50 +0000 |
---|---|---|
committer | Kostya Shishkov <kostya.shishkov@gmail.com> | 2006-11-13 11:20:50 +0000 |
commit | d00026d062a830211515c4e0351e5e08db9b634a (patch) | |
tree | 0844e8dcf7b1a2bcc60e640223e64dffb213f059 | |
parent | e2570297c05b56a3cf8dd69ebb160c7aadf2197e (diff) | |
download | ffmpeg-d00026d062a830211515c4e0351e5e08db9b634a.tar.gz |
Print error message for unsupported mode (RGB planar,CMYK,YCrCb)
Originally committed as revision 7006 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r-- | libavcodec/tiff.c | 6 |
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: |