summaryrefslogtreecommitdiff
path: root/gst-libs/gst/video/video.c
diff options
context:
space:
mode:
Diffstat (limited to 'gst-libs/gst/video/video.c')
-rw-r--r--gst-libs/gst/video/video.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gst-libs/gst/video/video.c b/gst-libs/gst/video/video.c
index 7f39aa44b..230ebae45 100644
--- a/gst-libs/gst/video/video.c
+++ b/gst-libs/gst/video/video.c
@@ -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;