IMB: Add asserts that returned fps and fps base are strictly positives.

Forgot to add that in previous commit, also related to T53003.
This commit is contained in:
Bastien Montagne 2018-01-26 15:13:35 +01:00
parent 567afcca20
commit 47a3bbcc34
Notes: blender-bot 2023-02-14 06:17:12 +01:00
Referenced by issue #53683, 2.79a release
1 changed files with 3 additions and 0 deletions

View File

@ -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;