Rémi Bernon (@rbernon) commented about dlls/winegstreamer/wg_transform.c:
buffer_add_video_meta(buffer, &video_info); }
- /* we perform DTS first as it should never be later than PTS, so any required timestamp offset should be the maximum here */
- if (sample->flags & WG_SAMPLE_FLAG_HAS_DTS)
- {
dts = sample->dts += transform->ts_offset;
if (dts < 0)
{
transform->ts_offset -= dts;
Updating the offset continuously feels weird, though I've only skimmed over the code for now.