if(test[0] == 'I' && test[1] == 'I')
{
+ // Reject cr2, libtiff fails with it
+ if( test[4] == 0x10 && !test[5] && !test[6] && !test[7] &&
+ test[8] == 'C' && test[9] == 'R' )
+ return 0;
return 1;
}
else
//printf("FileTIFF::read_frame_header %d %d %d\n", bitspersample, components, asset->tiff_cmodel);
TIFFClose(stream);
- asset->interlace_mode = BC_ILACE_MODE_NOTINTERLACED;
+ asset->interlace_mode = ILACE_MODE_NOTINTERLACED;
return result;
}
}
if(!tiff_unit->temp)
{
- tiff_unit->temp = new VFrame(0,
- -1,
- asset->width,
- asset->height,
- color_model,
- -1);
+ tiff_unit->temp =
+ new VFrame(asset->width, asset->height, color_model, 0);
}
BC_CModels::transfer(tiff_unit->temp->get_rows(),