diff options
author | Campbell Barton <ideasman42@gmail.com> | 2015-09-22 19:40:08 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2015-09-22 20:02:07 +0300 |
commit | 1a59b63e1c450e034d9aad800a7707d01c86ce6d (patch) | |
tree | 916534a338e95d8bde8096b08e5e9f5f4f8858cb /source/blender/render | |
parent | ad873ca92da0e795b712fe054356d5124e2dab44 (diff) |
Show error when unsupported movie format used
Was silently failing.
Diffstat (limited to 'source/blender/render')
-rw-r--r-- | source/blender/render/intern/source/pipeline.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/render/intern/source/pipeline.c b/source/blender/render/intern/source/pipeline.c index 98279da13bd..ad0856497c3 100644 --- a/source/blender/render/intern/source/pipeline.c +++ b/source/blender/render/intern/source/pipeline.c @@ -3517,6 +3517,11 @@ void RE_BlenderAnim(Render *re, Main *bmain, Scene *scene, Object *camera_overri get_videos_dimensions(re, &rd, &width, &height); mh = BKE_movie_handle_get(scene->r.im_format.imtype); + if (mh == NULL) { + BKE_report(re->reports, RPT_ERROR, "Movie format unsupported"); + return; + } + re->movie_ctx_arr = MEM_mallocN(sizeof(void *) * totvideos, "Movies' Context"); for (i = 0; i < totvideos; i++) { |