Use correct timescale in RTSP seeking
authorLuca Abeni <lucabe72@email.it>
Sat, 25 Aug 2007 15:12:38 +0000 (15:12 +0000)
committerLuca Abeni <lucabe72@email.it>
Sat, 25 Aug 2007 15:12:38 +0000 (15:12 +0000)
Originally committed as revision 10222 to svn://svn.ffmpeg.org/ffmpeg/trunk

libavformat/rtsp.c

index d6f8e39..db11049 100644 (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: