mxfdemux: For intra-only streams, always output DTS=PTS

This commit is contained in:
Sebastian Dröge 2017-07-05 17:04:46 +03:00
parent 9091e746e5
commit 08ac093b40

View file

@ -1849,12 +1849,12 @@ gst_mxf_demux_handle_generic_container_essence_element (GstMXFDemux * demux,
gst_buffer_get_size (inbuf));
GST_BUFFER_DTS (outbuf) = pad->position;
if (pts != G_MAXUINT64)
if (etrack->intra_only)
GST_BUFFER_PTS (outbuf) = pad->position;
else if (pts != G_MAXUINT64)
GST_BUFFER_PTS (outbuf) = gst_util_uint64_scale (pts * GST_SECOND,
pad->current_essence_track->source_track->edit_rate.d,
pad->current_essence_track->source_track->edit_rate.n);
else if (etrack->intra_only)
GST_BUFFER_PTS (outbuf) = pad->position;
else
GST_BUFFER_PTS (outbuf) = GST_CLOCK_TIME_NONE;