diff options
author | Richard Antalik <richardantalik@gmail.com> | 2021-04-08 19:51:47 +0300 |
---|---|---|
committer | Richard Antalik <richardantalik@gmail.com> | 2021-04-08 19:51:47 +0300 |
commit | 8777a44ccbb04f5015eb6a71c70f8c1efe83e61b (patch) | |
tree | 8fdecb08bffb0418a133ae68902ad6994ae8ddc5 /source/blender/sequencer/intern/proxy.c | |
parent | a19aa090d2e6504ba1a0b7b5aad045d4d583d3ea (diff) |
VSE: Fix crash when building proxy
When video file for strip doesn't exist, building crashes on NULL
dereference.
This check was removed by 04e1feb83051.
Diffstat (limited to 'source/blender/sequencer/intern/proxy.c')
-rw-r--r-- | source/blender/sequencer/intern/proxy.c | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/source/blender/sequencer/intern/proxy.c b/source/blender/sequencer/intern/proxy.c index 14667c53421..4dff3d03335 100644 --- a/source/blender/sequencer/intern/proxy.c +++ b/source/blender/sequencer/intern/proxy.c @@ -466,12 +466,14 @@ bool SEQ_proxy_rebuild_context(Main *bmain, seq_open_anim_file(scene, nseq, true); sanim = BLI_findlink(&nseq->anims, i); - context->index_context = IMB_anim_index_rebuild_context(sanim->anim, - context->tc_flags, - context->size_flags, - context->quality, - context->overwrite, - file_list); + if (sanim->anim) { + context->index_context = IMB_anim_index_rebuild_context(sanim->anim, + context->tc_flags, + context->size_flags, + context->quality, + context->overwrite, + file_list); + } if (!context->index_context) { MEM_freeN(context); return false; |