Use correct timescale in RTSP seeking

Originally committed as revision 10222 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
Luca Abeni 2007-08-25 15:12:38 +00:00
parent 273b0cd3c4
commit 50755217f8

View File

@ -1267,7 +1267,7 @@ static int rtsp_read_seek(AVFormatContext *s, int stream_index,
{
RTSPState *rt = s->priv_data;
rt->seek_timestamp = timestamp;
rt->seek_timestamp = av_rescale_q(timestamp, s->streams[stream_index]->time_base, AV_TIME_BASE_Q);
switch(rt->state) {
default:
case RTSP_STATE_IDLE: