Blender Git Commit Log

Git Commits -> Revision c528b9b

Revision c528b9b by Bastien Montagne (master)
January 26, 2018, 13:59 (GMT)
Fix T53003: IMB: Invalid framerate handling due to short integer overflow.

FFMPEG uses int for the numerator, while Blender uses a short. So in
cases people gave weird exotic framerate values and we cannot reduce
enough the numerator, we'd get totally weird values (even negative frame
rates sometimes!)

Now we add checks for short overflow and approximate as best as possible
in that case (error should not matter unless you have shots of at least
several hundreds of hours ;) ).

Commit Details:

Full Hash: c528b9b7777322c2b714aaa0bec40a1f3997ad06
Parent Commit: 009ce8f
Lines Changed: +19, -5

2 Modified Paths:

/source/blender/imbuf/intern/anim_movie.c (+17, -3) (Diff)
/source/blender/imbuf/intern/IMB_anim.h (+2, -2) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021