diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-26 05:49:30 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-26 05:49:30 +0300 |
commit | e6a23762da3f6b88da21669b7ae30c834ace2f55 (patch) | |
tree | 1c55bb97fbebe2755d22a7ccc0a484d323ed785e /source/blender/quicktime | |
parent | ba2257b57e56cc410288756de491969f4e207985 (diff) |
Fix [#20821] COLOR MANAGEMENT: Corrupts motion picture files
Wasn't tagging movie formats with profiles properly.
Diffstat (limited to 'source/blender/quicktime')
-rw-r--r-- | source/blender/quicktime/apple/qtkit_import.m | 2 | ||||
-rw-r--r-- | source/blender/quicktime/apple/quicktime_import.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/quicktime/apple/qtkit_import.m b/source/blender/quicktime/apple/qtkit_import.m index 31a6ca71259..40d57552fb6 100644 --- a/source/blender/quicktime/apple/qtkit_import.m +++ b/source/blender/quicktime/apple/qtkit_import.m @@ -281,6 +281,8 @@ ImBuf * qtime_fetchibuf (struct anim *anim, int position) ibuf = nsImageToiBuf(frameImage,anim->x, anim->y); [pool drain]; + + ibuf->profile = IB_PROFILE_SRGB; return ibuf; } diff --git a/source/blender/quicktime/apple/quicktime_import.c b/source/blender/quicktime/apple/quicktime_import.c index 6fd72131b00..655271b5055 100644 --- a/source/blender/quicktime/apple/quicktime_import.c +++ b/source/blender/quicktime/apple/quicktime_import.c @@ -373,6 +373,8 @@ ImBuf * qtime_fetchibuf (struct anim *anim, int position) } #endif + ibuf->profile == IB_PROFILE_SRGB; + IMB_flipy(ibuf); return ibuf; } |