diff options
author | Joseph Eagar <joeedh@gmail.com> | 2007-03-11 15:27:57 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2007-03-11 15:27:57 +0300 |
commit | dcd74620e5e0a3cccd093dca00301e8d818a0353 (patch) | |
tree | 7d141470af0fbeb89df626ac369c8133c9d969e6 /source/blender/imbuf/intern/cineon/cineonlib.c | |
parent | d0d9899e7615d71e1cb1036d2a9c0a15fdb41f54 (diff) |
=Cineon Bug=
In my attempts to get cinepaint's cineon code to work with files in memory,
I accidently rewrote something that should have been left as it is. This
causes images whose image buffers didn't start right after the cineon header to
become "shifted" to the left.
The DPX code looks correct, though.
Diffstat (limited to 'source/blender/imbuf/intern/cineon/cineonlib.c')
-rw-r--r-- | source/blender/imbuf/intern/cineon/cineonlib.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/cineon/cineonlib.c b/source/blender/imbuf/intern/cineon/cineonlib.c index 5253646be4d..91973927fab 100644 --- a/source/blender/imbuf/intern/cineon/cineonlib.c +++ b/source/blender/imbuf/intern/cineon/cineonlib.c @@ -662,11 +662,12 @@ cineonOpenFromMem(unsigned char *mem, unsigned int size) { i = cineon->imageOffset; - if (i >= size) { + if (logimage_fseek(cineon, cineon->imageOffset, SEEK_SET) != 0) { if (verbose) d_printf("Couldn't seek to image data at %d\n", cineon->imageOffset); cineonClose(cineon); return 0; } + cineon->fileYPos = 0; logImageGetByteConversionDefaults(&cineon->params); |