[Bf-blender-cvs] [47a3bbcc341] master: IMB: Add asserts that returned fps and fps base are strictly positives.
Bastien Montagne
noreply at git.blender.org
Fri Jan 26 15:16:13 CET 2018
Commit: 47a3bbcc34185684813ba21d808f124c584a93ae
Author: Bastien Montagne
Date: Fri Jan 26 15:13:35 2018 +0100
Branches: master
https://developer.blender.org/rB47a3bbcc34185684813ba21d808f124c584a93ae
IMB: Add asserts that returned fps and fps base are strictly positives.
Forgot to add that in previous commit, also related to T53003.
===================================================================
M source/blender/imbuf/intern/anim_movie.c
===================================================================
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;
More information about the Bf-blender-cvs
mailing list