[libbluray-devel] Export the MPLS MVC_Base_View_R_flag
Hendrik Leppkes
git at videolan.org
Sun Sep 2 17:27:27 CEST 2018
libbluray | branch: master | Hendrik Leppkes <h.leppkes at gmail.com> | Tue Feb 16 15:37:09 2016 +0100| [768d9c6add9b7e42651e31be055539c4ecdd8ba2] | committer: hpi1
Export the MPLS MVC_Base_View_R_flag
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=768d9c6add9b7e42651e31be055539c4ecdd8ba2
---
src/libbluray/bdnav/mpls_data.h | 1 +
src/libbluray/bdnav/mpls_parse.c | 3 ++-
src/libbluray/bluray.c | 2 ++
src/libbluray/bluray.h | 2 ++
4 files changed, 7 insertions(+), 1 deletion(-)
diff --git a/src/libbluray/bdnav/mpls_data.h b/src/libbluray/bdnav/mpls_data.h
index 2ceac92f..1529f079 100644
--- a/src/libbluray/bdnav/mpls_data.h
+++ b/src/libbluray/bdnav/mpls_data.h
@@ -107,6 +107,7 @@ typedef struct
uint8_t random_access_flag;
uint8_t audio_mix_flag;
uint8_t lossless_bypass_flag;
+ uint8_t mvc_base_view_r_flag;
} MPLS_AI;
typedef struct
diff --git a/src/libbluray/bdnav/mpls_parse.c b/src/libbluray/bdnav/mpls_parse.c
index 358b6342..1221e8f7 100644
--- a/src/libbluray/bdnav/mpls_parse.c
+++ b/src/libbluray/bdnav/mpls_parse.c
@@ -77,9 +77,10 @@ _parse_appinfo(BITSTREAM *bits, MPLS_AI *ai)
ai->random_access_flag = bs_read(bits, 1);
ai->audio_mix_flag = bs_read(bits, 1);
ai->lossless_bypass_flag = bs_read(bits, 1);
+ ai->mvc_base_view_r_flag = bs_read(bits, 1);
#if 0
// Reserved
- bs_skip(bits, 13);
+ bs_skip(bits, 12);
bs_seek_byte(bits, pos + len);
#endif
return 1;
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 883b35ce..4b5ce1c7 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -2675,6 +2675,8 @@ static BLURAY_TITLE_INFO* _fill_title_info(NAV_TITLE* title, uint32_t title_idx,
}
}
+ title_info->mvc_base_view_r_flag = title->pl->app_info.mvc_base_view_r_flag;
+
return title_info;
error:
diff --git a/src/libbluray/bluray.h b/src/libbluray/bluray.h
index 70e6a843..8eb8100b 100644
--- a/src/libbluray/bluray.h
+++ b/src/libbluray/bluray.h
@@ -274,6 +274,8 @@ typedef struct bd_title_info {
BLURAY_CLIP_INFO *clips;
BLURAY_TITLE_CHAPTER *chapters;
BLURAY_TITLE_MARK *marks;
+
+ uint8_t mvc_base_view_r_flag;
} BLURAY_TITLE_INFO;
/*
More information about the libbluray-devel
mailing list