diff asxparser.c @ 22021:71d78117fbf0

set has_valid_timestamps and corresponding first and final pts only after having checked that at the beginning, at the middle and at the end of the stream timestamps don't reset and that they seem to progress (almost-) linearly; additionally probe those timestamps only when the stream type is file and it's seekable, so all other stream types (especially network ones) won't waste time trying to seek and possibly slowing down detection. Seeking is not negatively affected by these changes. Patch by Christian Aistleitner (zaek7q gmx net) reworked by me.
author nicodvb
date Sun, 28 Jan 2007 10:45:34 +0000
parents 64d82a45a05d
children 24477987c2b8
line wrap: on
line diff