diff options
-rw-r--r-- | vobsub.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -1274,6 +1274,9 @@ void vobsub_seek(void * vobhandle, float pts) int seek_pts100 = (int)pts * 90000; if (vob->spu_streams && 0 <= vobsub_id && (unsigned) vobsub_id < vob->spu_streams_size) { + /* do not seek if we don't know the id */ + if (vobsub_get_id(vob, vobsub_id) == NULL) + return; queue = vob->spu_streams + vobsub_id; queue->current_index = 0; while ((queue->packets + queue->current_index)->pts100 < seek_pts100) |