lavf/segment: set segment end time when the first packet arrives
authorStefano Sabatini <stefasab@gmail.com>
Thu, 17 Jul 2014 14:36:27 +0000 (16:36 +0200)
committerStefano Sabatini <stefasab@gmail.com>
Thu, 17 Jul 2014 14:51:51 +0000 (16:51 +0200)
commit526bd7bdfad7d0e7b18ee45592e68c881abeac2a
treeb339d26a94b9cc3d8272cd853e8f9a4507dc3ea5
parent3d38c9904121b39eff41e8150fdd1ec523f290c7
lavf/segment: set segment end time when the first packet arrives

Avoid negative durations in case there is a single packet in the current
segment, since in that case the end time is still set to the previous
segment end time.
libavformat/segment.c