[libbluray-devel] Disable profile 6 BD-J menus
hpi1
git at videolan.org
Wed Aug 30 09:33:32 CEST 2017
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Wed Aug 30 10:28:33 2017 +0300| [b3ad3388852af48038743ffdbb4771b869be46a5] | committer: hpi1
Disable profile 6 BD-J menus
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=b3ad3388852af48038743ffdbb4771b869be46a5
---
ChangeLog | 2 ++
src/libbluray/bluray.c | 9 +++++++++
2 files changed, 11 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 35831be1..d316e0b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,5 @@
+- Add initial support for UHD BluRay discs (without BD-J menus).
+
2017-06-07: Version 1.0.1
- Add possibility to check whether BD-J is functional without opening a disc.
- Improve main title selection.
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 083a77ca..4fe0fde9 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1063,6 +1063,15 @@ static void _fill_disc_info(BLURAY *bd, BD_ENC_INFO *enc_info)
/* populate title names */
bd_get_meta(bd);
+ /* no BD-J menu support for profile 6 */
+ if (bd->disc_info.num_bdj_titles) {
+ // XXX actually, should check from bdjo files ...
+ if (index->indx_version >= ('0' << 24 | '3' << 16 | '0' << 8 | '0')) {
+ BD_DEBUG(DBG_CRIT | DBG_BLURAY, "WARNING: BluRay profile 6 BD-J menus are not supported\n");
+ bd->disc_info.no_menu_support = 1;
+ }
+ }
+
indx_free(&index);
}
More information about the libbluray-devel
mailing list