Use correct timescale in RTSP seeking

Originally committed as revision 10222 to svn://svn.ffmpeg.org/ffmpeg/trunk
pull/126/head
Luca Abeni 18 years ago
parent 273b0cd3c4
commit 50755217f8
  1. 2
      libavformat/rtsp.c

@ -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:

Loading…
Cancel
Save