This change ensures that video streams produced by imageWriter have a
PTS value of zero for the first emitted frame. Previously all frames
added to the output stream indiscriminately advanced the PTS value
of dstFrame by 'frameTime' but this resulted in always generating
videos whose initial frames had a non-zero PTS. This resulted in 1)
video players displaying a blank frame rather than the first frame of
interest just prior to beginning playback and 2) displaying a blank
frame repeatedly during looping playback.
This change ensures that video streams produced by imageWriter have a PTS value of zero for the first emitted frame. Previously all frames added to the output stream indiscriminately advanced the PTS value of dstFrame by 'frameTime' but this resulted in always generating videos whose initial frames had a non-zero PTS. This resulted in 1) video players displaying a blank frame rather than the first frame of interest just prior to beginning playback and 2) displaying a blank frame repeatedly during looping playback.
Fixes #18.