Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

QT 6.5 crash in GetDIBFromPICT



Hi,

With the following Windows code, QuickTime crashes in GetDIBFromPICT. This
works in older versions (verified to work with 6.4)


The picture is JPEG-compressed, 4864 by 6975 pixels, 8 bits grayscale.

Has anyone else had this problem?

Regards,

/Johan.

=========================
// QT already initialized at this point
FSSpec fileSpec;
GraphicsImportComponent gi = NULL;
HANDLE dib = NULL;
OSErr err = NativePathNameToFSSpec(const_cast<char*>(filename), &fileSpec,
kFullNativePath);
if (err != noErr) {
// log error
}
err = GetGraphicsImporterForFile(&fileSpec, &gi);
if (err == noErr) {
PicHandle pic;
ComponentResult res = GraphicsImportGetAsPicture(gi, &pic);
if (res == noErr) {
dib = (HANDLE)GetDIBFromPICT(pic);
KillPicture(pic);
} else {
// log error
}
CloseComponent(gi);
} else {
// log error
}
_______________________________________________
quicktime-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/quicktime-api
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.