1 parent
f29fcafb81
commit
a24227d7ad
1 file changed
+1
-1
@@ -204,7 +204,7 @@ static int bluray_stream_control(stream_t *s, int cmd, void *arg)
|
||||
return STREAM_UNSUPPORTED;
|
||||
int chapter = *(double *)arg;
|
||||
double time = MP_NOPTS_VALUE;
|
||||
if (chapter >= 0 || chapter < ti->chapter_count)
|
||||
if (chapter >= 0 && chapter < ti->chapter_count)
|
||||
time = BD_TIME_TO_MP(ti->chapters[chapter].start);
|
||||
if (time == MP_NOPTS_VALUE)
|
||||
return STREAM_ERROR;
|
||||
|
||||
Reference in new issue
Block a user