0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00

Seek by pts accurately.

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26764 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
ulion 2008-05-14 03:37:03 +00:00
parent 9620077483
commit 020fe6ff75

View File

@ -1343,7 +1343,7 @@ void vobsub_seek(void * vobhandle, float pts)
{ {
vobsub_t * vob = (vobsub_t *)vobhandle; vobsub_t * vob = (vobsub_t *)vobhandle;
packet_queue_t * queue; packet_queue_t * queue;
int seek_pts100 = (int)pts * 90000; int seek_pts100 = pts * 90000;
if (vob->spu_streams && 0 <= vobsub_id && (unsigned) vobsub_id < vob->spu_streams_size) { if (vob->spu_streams && 0 <= vobsub_id && (unsigned) vobsub_id < vob->spu_streams_size) {
/* do not seek if we don't know the id */ /* do not seek if we don't know the id */