Commit 592d7cbc authored by Mark Nauwelaerts's avatar Mark Nauwelaerts
Browse files

pcapparse: properly apply ts offset

parent 671a9faa
......@@ -481,8 +481,10 @@ gst_pcap_parse_chain (GstPad * pad, GstBuffer * buffer)
if (GST_CLOCK_TIME_IS_VALID (self->cur_ts)) {
if (!GST_CLOCK_TIME_IS_VALID (self->base_ts))
self->base_ts = self->cur_ts;
if (self->offset >= 0)
self->cur_ts -= self->base_ts + self->offset;
if (self->offset >= 0) {
self->cur_ts -= self->base_ts;
self->cur_ts += self->offset;
}
}
memcpy (GST_BUFFER_DATA (out_buf), payload_data, payload_size);
......
Markdown is supported
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