comparison subopt-helper.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 2ec2301183cd
children bc9e95184521
comparison
equal deleted inserted replaced
22020:a40f222a31df 22021:71d78117fbf0