summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2016-06-30 23:35:33 +0200
committerSebastian Dröge <sebastian@centricular.com>2016-07-04 12:48:43 +0200
commit57f9815fa4aa328bd9b1475ac322486a2b4c4af8 (patch)
treef7fe71deea3eeb570033e16c4c304b2b5f1e24b1 /ext
parente0f8fcbe46bbdbb466da0c3e3082c9fc6700cb5b (diff)
downloadgstreamer-plugins-bad-57f9815fa4aa328bd9b1475ac322486a2b4c4af8.tar.gz
openh264enc: Fix initial time-per-frame calculation
Diffstat (limited to 'ext')
-rw-r--r--ext/openh264/gstopenh264enc.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp
index 2ee66e966..c56fe899c 100644
--- a/ext/openh264/gstopenh264enc.cpp
+++ b/ext/openh264/gstopenh264enc.cpp
@@ -794,7 +794,7 @@ gst_openh264enc_handle_frame (GstVideoEncoder * encoder,
if (frame) {
if (G_UNLIKELY (openh264enc->priv->frame_count == 1)) {
openh264enc->priv->time_per_frame =
- (GST_NSECOND / openh264enc->priv->framerate);
+ (GST_SECOND / openh264enc->priv->framerate);
openh264enc->priv->previous_timestamp = frame->pts;
} else {
openh264enc->priv->time_per_frame =