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:
authorBastien Montagne <montagne29@wanadoo.fr>2018-01-26 17:13:35 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2018-01-26 17:14:32 +0300
commit47a3bbcc34185684813ba21d808f124c584a93ae (patch)
tree25d1a7d2eba81686b07e8d65c64b0d8dc3b99703 /source/blender/imbuf
parent567afcca20215770a7eaefa04052b0a41c682fcb (diff)
IMB: Add asserts that returned fps and fps base are strictly positives.
Forgot to add that in previous commit, also related to T53003.
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/anim_movie.c3
1 files changed, 3 insertions, 0 deletions
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;