From 27c0a9306e039506fd3b8ce75cd8eb551364e57d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Thu, 30 Jun 2016 23:35:33 +0200 Subject: [PATCH] openh264enc: Fix initial time-per-frame calculation --- ext/openh264/gstopenh264enc.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp index b90893659c..1346b4bc83 100644 --- a/ext/openh264/gstopenh264enc.cpp +++ b/ext/openh264/gstopenh264enc.cpp @@ -770,7 +770,7 @@ gst_openh264enc_handle_frame (GstVideoEncoder * encoder, openh264enc->frame_count++; if (frame) { if (G_UNLIKELY (openh264enc->frame_count == 1)) { - openh264enc->time_per_frame = (GST_NSECOND / openh264enc->framerate); + openh264enc->time_per_frame = (GST_SECOND / openh264enc->framerate); openh264enc->previous_timestamp = frame->pts; } else { openh264enc->time_per_frame =