[FFmpeg-cvslog] r10222 - trunk/libavformat/rtsp.c

lucabe subversion
Sat Aug 25 17:12:38 CEST 2007


Author: lucabe
Date: Sat Aug 25 17:12:38 2007
New Revision: 10222

Log:
Use correct timescale in RTSP seeking


Modified:
   trunk/libavformat/rtsp.c

Modified: trunk/libavformat/rtsp.c
==============================================================================
--- trunk/libavformat/rtsp.c	(original)
+++ trunk/libavformat/rtsp.c	Sat Aug 25 17:12:38 2007
@@ -1267,7 +1267,7 @@ static int rtsp_read_seek(AVFormatContex
 {
     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:




More information about the ffmpeg-cvslog mailing list