Blender Git Commit Log

Git Commits -> Revision a73b390

January 26, 2018, 14:18 (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: a73b390f482bbce52453f65bbe3ddc09a4f22f50
Parent Commit: 0e37c98
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