# HG changeset patch # User kostya # Date 1163416850 0 # Node ID 46f12596304ff0a65931672babbfcbe663d00bb2 # Parent 14fe1e8d337c79bb100511eb6410e871309708b4 Print error message for unsupported mode (RGB planar,CMYK,YCrCb) diff -r 14fe1e8d337c -r 46f12596304f tiff.c --- a/tiff.c Mon Nov 13 05:32:10 2006 +0000 +++ b/tiff.c Mon Nov 13 11:20:50 2006 +0000 @@ -387,6 +387,12 @@ 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: