This needs a cast i think. pkt::pts/dts is int64_t if i remember correctly.