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>2020-11-11 08:14:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2020-11-11 08:14:05 +0300
commita5f8071bdf7893ef487c677b460793e8bef55402 (patch)
tree50593a4a3f98a0fb0975e2346c6c78c55823eafb /source/blender/sequencer
parente9c19b28202eb1fdc774d62f23896bf9fafb0fb8 (diff)
Cleanup: use bool for imbuf save callbacks
Diffstat (limited to 'source/blender/sequencer')
-rw-r--r--source/blender/sequencer/intern/proxy.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source/blender/sequencer/intern/proxy.c b/source/blender/sequencer/intern/proxy.c
index 83231a00f91..398a9a3e072 100644
--- a/source/blender/sequencer/intern/proxy.c
+++ b/source/blender/sequencer/intern/proxy.c
@@ -265,7 +265,6 @@ static void seq_proxy_build_frame(const SeqRenderData *context,
char name[PROXY_MAXFILE];
int quality;
int rectx, recty;
- int ok;
ImBuf *ibuf_tmp, *ibuf;
Editing *ed = context->scene->ed;
@@ -305,8 +304,8 @@ static void seq_proxy_build_frame(const SeqRenderData *context,
BLI_make_existing_file(name);
- ok = IMB_saveiff(ibuf, name, IB_rect | IB_zbuf | IB_zbuffloat);
- if (ok == 0) {
+ const bool ok = IMB_saveiff(ibuf, name, IB_rect | IB_zbuf | IB_zbuffloat);
+ if (ok == false) {
perror(name);
}