avformat: only fill-in interpolated timestamps if duration is non-zero
authorJustin Ruggles <justin.ruggles@gmail.com>
Thu, 26 Apr 2012 15:02:02 +0000 (11:02 -0400)
committerJustin Ruggles <justin.ruggles@gmail.com>
Thu, 3 May 2012 20:28:08 +0000 (16:28 -0400)
commit8916f1fbcba0f2a3927752ddd0b6ea6e209c6698
treedf490dffbbbf3e24c8310e52713e1c33b3fc7947
parentff499157a11046a59f88646a2541bd6c170f1804
avformat: only fill-in interpolated timestamps if duration is non-zero

This avoids returning duplicate timestamps for multiple packets when the
demuxer does not provide all timestamps and packet duration is not known.
libavformat/utils.c