[FFmpeg-devel] [PATCH] estimate stream durations using read_timestamp (was: [PATCH] estimate stream durations using read_timestamp
Sun May 25 19:59:39 CEST 2008
> We also would need benchmarks to see what effect the change has on speed,
> especially with files with many streams (mpeg ts with 20 streams has to be
> not slower ...)
Well given that it most likely will be alot slower, do you have any
suggestion as how to proceed? We could keep the old code for mpegs, but as
you say then there will be code duplication.
Another option could be to change read_timestamp to allow a stream_index
parameter of -1, meaning return the first timestamp you come across,
independent of stream. This would be a quite abit larger patch thou as all
read_timestamp functions must be updated too support this.
In either case, here is an updated patch that ditches the old code.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 4075 bytes
Desc: Attached file: nuv_timestamp.patch
More information about the ffmpeg-devel