Mercurial > libavformat.hg
diff raw.c @ 463:696f41bc8784 libavformat
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)
author | michael |
---|---|
date | Sun, 23 May 2004 16:26:12 +0000 |
parents | e14fcd57ad2f |
children | 09e46bfc859c |
line wrap: on
line diff
--- a/raw.c Fri May 21 20:43:21 2004 +0000 +++ b/raw.c Sun May 23 16:26:12 2004 +0000 @@ -159,7 +159,7 @@ 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 */