mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-23 15:48:23 +00:00
gst_video_guess_framerate: Don't throw away all precision
When operating on framerates near 10000fps, at least keep 1 digit of precision for calculations
This commit is contained in:
parent
bf42420436
commit
cca3a5b194
1 changed files with 2 additions and 2 deletions
|
@ -133,8 +133,8 @@ gst_video_guess_framerate (GstClockTime duration, gint * dest_n, gint * dest_d)
|
|||
/* Use a limited precision conversion by default for more sensible results,
|
||||
* unless the frame duration is absurdly small (high speed cameras?) */
|
||||
if (duration > 100000) {
|
||||
best_n = 10000;
|
||||
best_d = duration / 100000;
|
||||
best_n = GST_SECOND / 10000;
|
||||
best_d = duration / 10000;
|
||||
} else {
|
||||
best_n = GST_SECOND;
|
||||
best_d = duration;
|
||||
|
|
Loading…
Reference in a new issue