Mercurial > libavformat.hg
diff raw.c @ 464:09e46bfc859c libavformat
cur_dts in native timebase
author | michael |
---|---|
date | Sun, 23 May 2004 21:36:23 +0000 |
parents | 696f41bc8784 |
children | 60f897e8dd2d |
line wrap: on
line diff
--- a/raw.c Sun May 23 16:26:12 2004 +0000 +++ b/raw.c Sun May 23 21:36:23 2004 +0000 @@ -163,7 +163,7 @@ 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; }