changeset 2408:a32ac90d5d67 libavformat

Use correct timescale in RTSP seeking
author lucabe
date Sat, 25 Aug 2007 15:12:38 +0000
parents 358bf36d580e
children 94908f6107ff
files rtsp.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/rtsp.c	Fri Aug 24 17:40:43 2007 +0000
+++ b/rtsp.c	Sat Aug 25 15:12:38 2007 +0000
@@ -1267,7 +1267,7 @@
 {
     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: