diff options
author | Campbell Barton <ideasman42@gmail.com> | 2020-11-11 08:14:05 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2020-11-11 08:14:05 +0300 |
commit | a5f8071bdf7893ef487c677b460793e8bef55402 (patch) | |
tree | 50593a4a3f98a0fb0975e2346c6c78c55823eafb /source/blender/sequencer/intern | |
parent | e9c19b28202eb1fdc774d62f23896bf9fafb0fb8 (diff) |
Cleanup: use bool for imbuf save callbacks
Diffstat (limited to 'source/blender/sequencer/intern')
-rw-r--r-- | source/blender/sequencer/intern/proxy.c | 5 |
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); } |