diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2004-05-23 16:26:12 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-05-23 16:26:12 +0000 |
commit | cdd5034f892c8c6494d24a6991aa62748ee332db (patch) | |
tree | ca436f5cc904e9ca648f46bd0eea651b9e345a20 /libavformat/raw.c | |
parent | 9debb40040c4c040220b189c220e3089d8220cd0 (diff) | |
download | ffmpeg-cdd5034f892c8c6494d24a6991aa62748ee332db.tar.gz |
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
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r-- | libavformat/raw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c index b650fd76ae..fa3a1336d2 100644 --- a/libavformat/raw.c +++ b/libavformat/raw.c @@ -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 */ |