Mercurial > libavformat.hg
changeset 557:084de726b4d0 libavformat
default stream timebase docs patch by (Nathan Kurz <nate at verse dot com>)
author | michael |
---|---|
date | Mon, 11 Oct 2004 19:42:18 +0000 |
parents | cb5f220888c0 |
children | 89bd76208427 |
files | utils.c |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/utils.c Mon Oct 11 17:12:52 2004 +0000 +++ b/utils.c Mon Oct 11 19:42:18 2004 +0000 @@ -1234,7 +1234,8 @@ * Seek to the key frame at timestamp. * 'timestamp' in 'stream_index'. * @param stream_index If stream_index is (-1), a default - * stream is selected + * stream is selected, and timestamp is automatically converted + * from AV_TIME_BASE units to the stream specific time_base. * @param timestamp timestamp in AVStream.time_base units * @param flags flags which select direction and seeking mode * @return >= 0 on success @@ -1255,6 +1256,7 @@ return -1; st= s->streams[stream_index]; + /* timestamp for default must be expressed in AV_TIME_BASE units */ timestamp = av_rescale(timestamp, st->time_base.den, AV_TIME_BASE * (int64_t)st->time_base.num); } st= s->streams[stream_index];