[Ffmpeg-cvslog] r7011 - trunk/libavcodec/tiff.c
kostya
subversion
Mon Nov 13 12:38:42 CET 2006
Author: kostya
Date: Mon Nov 13 12:38:42 2006
New Revision: 7011
Modified:
trunk/libavcodec/tiff.c
Log:
Give error about planar RGB
Modified: trunk/libavcodec/tiff.c
==============================================================================
--- trunk/libavcodec/tiff.c (original)
+++ trunk/libavcodec/tiff.c Mon Nov 13 12:38:42 2006
@@ -35,6 +35,7 @@
TIFF_STRIP_OFFS = 0x111,
TIFF_ROWSPERSTRIP = 0x116,
TIFF_STRIP_SIZE,
+ TIFF_PLANAR = 0x11C,
TIFF_XPOS = 0x11E,
TIFF_YPOS = 0x11F,
TIFF_PREDICTOR = 0x13D,
@@ -415,6 +416,13 @@
j |= tget(&bp, type, s->le) >> off;
pal[i] = j;
}
+ break;
+ case TIFF_PLANAR:
+ if(value == 2){
+ av_log(s->avctx, AV_LOG_ERROR, "Planar format is not supported\n");
+ return -1;
+ }
+ break;
}
return 0;
}
More information about the ffmpeg-cvslog
mailing list