diff options
author | Nathan Kurz <nate@verse.com> | 2004-10-11 19:42:18 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2004-10-11 19:42:18 +0000 |
commit | eb497825fea89ca6c077ae883c33431bb88a32d7 (patch) | |
tree | e74fa5253615a94bf0d758ae472c31889ec130f4 /libavformat/utils.c | |
parent | d0f3f15945f808313ef62b50328d540bd0758368 (diff) | |
download | ffmpeg-eb497825fea89ca6c077ae883c33431bb88a32d7.tar.gz |
default stream timebase docs patch by (Nathan Kurz <nate at verse dot com>)
Originally committed as revision 3581 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/utils.c')
-rw-r--r-- | libavformat/utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libavformat/utils.c b/libavformat/utils.c index f8a00f20dc..c756d7723c 100644 --- a/libavformat/utils.c +++ b/libavformat/utils.c @@ -1234,7 +1234,8 @@ static int av_seek_frame_generic(AVFormatContext *s, * 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 @@ int av_seek_frame(AVFormatContext *s, int stream_index, int64_t timestamp, int f 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]; |