[Ffmpeg-cvslog] r7002 - trunk/libavcodec/tiff.c
kostya
subversion
Mon Nov 13 06:28:55 CET 2006
Author: kostya
Date: Mon Nov 13 06:28:55 2006
New Revision: 7002
Modified:
trunk/libavcodec/tiff.c
Log:
Correctly detect 4-component images
Modified: trunk/libavcodec/tiff.c
==============================================================================
--- trunk/libavcodec/tiff.c (original)
+++ trunk/libavcodec/tiff.c Mon Nov 13 06:28:55 2006
@@ -242,11 +242,12 @@
else{
switch(type){
case TIFF_BYTE:
- s->bpp = (off & 0xFF) + ((off >> 8) & 0xFF) + ((off >> 16) & 0xFF);
+ s->bpp = (off & 0xFF) + ((off >> 8) & 0xFF) + ((off >> 16) & 0xFF) + ((off >> 24) & 0xFF);
break;
case TIFF_SHORT:
case TIFF_LONG:
- s->bpp = tget(&buf, type, s->le) + tget(&buf, type, s->le) + tget(&buf, type, s->le);
+ s->bpp = 0;
+ for(i = 0; i < count; i++) s->bpp += tget(&buf, type, s->le);
break;
default:
s->bpp = -1;
More information about the ffmpeg-cvslog
mailing list