mxfdemux: Use material track edit rate for component PTS offsetting

This commit is contained in:
Sebastian Dröge 2017-07-24 16:54:22 +03:00
parent 26d5ba42ea
commit 59f9bc05d2

View file

@ -1924,8 +1924,8 @@ gst_mxf_demux_handle_generic_container_essence_element (GstMXFDemux * demux,
pad->current_essence_track->source_track->edit_rate.n); pad->current_essence_track->source_track->edit_rate.n);
GST_BUFFER_PTS (outbuf) += GST_BUFFER_PTS (outbuf) +=
gst_util_uint64_scale (pad->current_component_start_position * gst_util_uint64_scale (pad->current_component_start_position *
GST_SECOND, pad->current_essence_track->source_track->edit_rate.d, GST_SECOND, pad->material_track->edit_rate.d,
pad->current_essence_track->source_track->edit_rate.n); pad->material_track->edit_rate.n);
} else { } else {
GST_BUFFER_PTS (outbuf) = GST_CLOCK_TIME_NONE; GST_BUFFER_PTS (outbuf) = GST_CLOCK_TIME_NONE;
} }