changeset 4187:46f12596304f libavcodec

Print error message for unsupported mode (RGB planar,CMYK,YCrCb)
author kostya
date Mon, 13 Nov 2006 11:20:50 +0000
parents 14fe1e8d337c
children 57b22f48a6a6
files tiff.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: