diff options
Diffstat (limited to 'ext/openh264/gstopenh264enc.cpp')
-rw-r--r-- | ext/openh264/gstopenh264enc.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/openh264/gstopenh264enc.cpp b/ext/openh264/gstopenh264enc.cpp index a5e488f6a..ad1812046 100644 --- a/ext/openh264/gstopenh264enc.cpp +++ b/ext/openh264/gstopenh264enc.cpp @@ -794,9 +794,9 @@ gst_openh264enc_handle_frame (GstVideoEncoder * encoder, openh264enc->time_per_frame = (GST_SECOND / openh264enc->framerate); openh264enc->previous_timestamp = frame->pts; } else { - openh264enc->time_per_frame = - openh264enc->time_per_frame * 0.8 + (frame->pts - - openh264enc->previous_timestamp) * 0.2; + openh264enc->time_per_frame = (guint64) + (openh264enc->time_per_frame * 0.8 + (frame->pts - + openh264enc->previous_timestamp) * 0.2); openh264enc->previous_timestamp = frame->pts; if (openh264enc->frame_count % 10 == 0) { fps = GST_SECOND / (gdouble) openh264enc->time_per_frame; |