store index for seeking in the native timebase of each stream

set correct timebase for nut
merge mpeg-ts seeking with existing seeking code
10l fix in mpegts (27mhz vs. 90khz)

Originally committed as revision 3152 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Michael Niedermayer
2004-05-23 16:26:12 +00:00
parent 9debb40040
commit cdd5034f89
8 changed files with 71 additions and 152 deletions

View File

@@ -159,7 +159,7 @@ int pcm_read_seek(AVFormatContext *s,
return -1;
/* compute the position by aligning it to block_align */
pos = (timestamp * byte_rate) / AV_TIME_BASE;
pos = av_rescale(timestamp * byte_rate, st->time_base.num, st->time_base.den);
pos = (pos / block_align) * block_align;
/* recompute exact position */