Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-04-02 16:56:23 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-04-02 16:56:23 +0400
commit04be9955d09b746ce0ebf1f4295f3cb226674d00 (patch)
tree711d43c90454645f351e3591eea6fe88f783f0ab /source/blender/imbuf/intern/cineon
parent17cb235f91f91b0dc55e93f5cac44ba5a3eb8c72 (diff)
dpx saving would fail if there was no float buffer, which is a problem when rendering from the sequencer because a float buffer can be generated for some frames but not others depending on their contents.
Diffstat (limited to 'source/blender/imbuf/intern/cineon')
-rw-r--r--source/blender/imbuf/intern/cineon/cineon_dpx.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/imbuf/intern/cineon/cineon_dpx.c b/source/blender/imbuf/intern/cineon/cineon_dpx.c
index f00f6bc38c5..2959ed654ab 100644
--- a/source/blender/imbuf/intern/cineon/cineon_dpx.c
+++ b/source/blender/imbuf/intern/cineon/cineon_dpx.c
@@ -135,7 +135,13 @@ static int imb_save_dpx_cineon(ImBuf *buf, char *filename, int use_cineon, int f
height = buf->y;
depth = 3;
- if (!buf->rect_float) return 0;
+
+ if (!buf->rect_float) {
+ IMB_float_from_rect(buf);
+ if (!buf->rect_float) { /* in the unlikely event that converting to a float buffer fails */
+ return 0;
+ }
+ }
logImageSetVerbose(0);
logImage = logImageCreate(filename, use_cineon, width, height, depth);