Commit 4a39d4d4 authored by Wim Taymans's avatar Wim Taymans
Browse files

plugins/elements/gstidentity.c: Don't overflow in retimestamping code.

Original commit message from CVS:
* plugins/elements/gstidentity.c: (gst_identity_transform_ip):
Don't overflow in retimestamping code.
parent 45ed0f91
2007-06-08 Wim Taymans <wim@fluendo.com>
* plugins/elements/gstidentity.c: (gst_identity_transform_ip):
Don't overflow in retimestamping code.
2007-06-07 Sebastien Moutte <sebastien@moutte.net>
 
* libs/gst/controller/gstinterpolation.c: (DEFINE_CUBIC_GET):
......
......@@ -544,7 +544,8 @@ gst_identity_transform_ip (GstBaseTransform * trans, GstBuffer * buf)
}
if (identity->datarate > 0) {
GstClockTime time = identity->offset * GST_SECOND / identity->datarate;
GstClockTime time = gst_util_uint64_scale_int (identity->offset,
GST_SECOND, identity->datarate);
GST_BUFFER_TIMESTAMP (buf) = time;
GST_BUFFER_DURATION (buf) =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment