[vlc-commits] bluray: title number is 1..N, not 0..N-1
Petri Hintukainen
git at videolan.org
Wed Mar 30 21:09:10 CEST 2016
vlc | branch: master | Petri Hintukainen <phintuka at gmail.com> | Wed Mar 30 22:02:08 2016 +0300| [ac8d837df5b7564acaaee2d11e13dcfd73a2a594] | committer: Petri Hintukainen
bluray: title number is 1..N, not 0..N-1
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=ac8d837df5b7564acaaee2d11e13dcfd73a2a594
---
modules/access/bluray.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/access/bluray.c b/modules/access/bluray.c
index 1555b32..40433d9 100644
--- a/modules/access/bluray.c
+++ b/modules/access/bluray.c
@@ -1677,7 +1677,7 @@ static void blurayInitTitles(demux_t *p_demux, int menu_titles)
}
} else {
/* add possible title name from disc metadata */
- if (di && di->titles && i < di->num_titles) {
+ if (di && di->titles && i <= di->num_titles) {
if (di->titles[i]->name) {
t->psz_name = strdup(di->titles[i]->name);
}
More information about the vlc-commits
mailing list