diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2016-06-30 23:35:33 +0200 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2016-06-30 23:35:33 +0200 |
commit | 27c0a9306e039506fd3b8ce75cd8eb551364e57d (patch) | |
tree | 0fc42e60adad73acc182bdd6a5883f292e4d3ed0 | |
parent | 593ed6f3d74d01920e8c0172fdbbc4709721c5e9 (diff) | |
download | gstreamer-plugins-bad-27c0a9306e039506fd3b8ce75cd8eb551364e57d.tar.gz |
openh264enc: Fix initial time-per-frame calculation
-rw-r--r-- | ext/openh264/gstopenh264enc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp index b90893659..1346b4bc8 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 = |