Code added to calculate sample duration on-the-fly (*experiment* to help with mixed progressive/interlaced streams)