From 47a3bbcc34185684813ba21d808f124c584a93ae Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 26 Jan 2018 15:13:35 +0100 Subject: [PATCH] IMB: Add asserts that returned fps and fps base are strictly positives. Forgot to add that in previous commit, also related to T53003. --- source/blender/imbuf/intern/anim_movie.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/blender/imbuf/intern/anim_movie.c b/source/blender/imbuf/intern/anim_movie.c index 4f535a26c3b..5472cae3ef2 100644 --- a/source/blender/imbuf/intern/anim_movie.c +++ b/source/blender/imbuf/intern/anim_movie.c @@ -1389,6 +1389,9 @@ bool IMB_anim_get_fps(struct anim *anim, UNUSED_VARS(no_av_base); *frs_sec_base = (float)frs_sec_base_double; #endif + BLI_assert(*frs_sec > 0); + BLI_assert(*frs_sec_base > 0.0f); + return true; } return false;