mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-01-06 15:21:15 +00:00
Use correct timescale in RTSP seeking
Originally committed as revision 10222 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
273b0cd3c4
commit
50755217f8
@ -1267,7 +1267,7 @@ static int rtsp_read_seek(AVFormatContext *s, int stream_index,
|
|||||||
{
|
{
|
||||||
RTSPState *rt = s->priv_data;
|
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) {
|
switch(rt->state) {
|
||||||
default:
|
default:
|
||||||
case RTSP_STATE_IDLE:
|
case RTSP_STATE_IDLE:
|
||||||
|
Loading…
Reference in New Issue
Block a user