aboutsummaryrefslogtreecommitdiffstats
path: root/libavformat/raw.c
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2004-05-23 21:36:23 +0000
committerMichael Niedermayer <michaelni@gmx.at>2004-05-23 21:36:23 +0000
commit77405fc8664d295f030be106aaffb3e6c9b07225 (patch)
tree58ee18e441d3afb7bb4f77f33f3f8bbc8bb60992 /libavformat/raw.c
parentcdd5034f892c8c6494d24a6991aa62748ee332db (diff)
downloadffmpeg-77405fc8664d295f030be106aaffb3e6c9b07225.tar.gz
cur_dts in native timebase
Originally committed as revision 3153 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/raw.c')
-rw-r--r--libavformat/raw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/raw.c b/libavformat/raw.c
index fa3a1336d2..1c65f3aaad 100644
--- a/libavformat/raw.c
+++ b/libavformat/raw.c
@@ -163,7 +163,7 @@ int pcm_read_seek(AVFormatContext *s,
pos = (pos / block_align) * block_align;
/* recompute exact position */
- st->cur_dts = (pos * AV_TIME_BASE) / byte_rate;
+ st->cur_dts = av_rescale(pos, st->time_base.den, byte_rate * (int64_t)st->time_base.num);
url_fseek(&s->pb, pos + s->data_offset, SEEK_SET);
return 0;
}