Hi,

I seem to have a problem with cmsOpenProfileFromStream.

Code example:
---
FILE *f=fopen("myfile.dat","rb");
fseek(f,4120,SEEK_SET)) // ICC profile location within 'myfile.dat'
cmsHPROFILE hP=cmsOpenProfileFromStream(f,"r");
---

This used to work with v2.0, but fails with v2.1 rc.
Even though the file position has been set for the stream, lcms persists
to read from the beginning of the stream.

I have tracked down the feature/bug to this source line:
  "if (io -> Read(io, &Header, sizeof(cmsICCHeader), 1) != 1)"
in function:
  "_cmsReadHeader(_cmsICCPROFILE* Icc)"
in file:
  "cmsio0.c".

Any idea's?

Best regards,
Auke Nauta



------------------------------------------------------------------------------
The Next 800 Companies to Lead America's Growth: New Video Whitepaper
David G. Thomson, author of the best-selling book "Blueprint to a 
Billion" shares his insights and actions to help propel your 
business during the next growth cycle. Listen Now!
http://p.sf.net/sfu/SAP-dev2dev
_______________________________________________
Lcms-user mailing list
Lcms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lcms-user

Reply via email to