[libbluray-devel] expose clip_id in BLURAY_CLIP_INFO

John Stebbins git at videolan.org
Sat Jan 14 19:13:44 CET 2017


libbluray | branch: master | John Stebbins <stebbins at jetheaddev.com> | Sat Jan 14 11:03:14 2017 -0700| [da50ad6ee5ceef6e81a96af0f2affcfe961c9d9f] | committer: John Stebbins

expose clip_id in BLURAY_CLIP_INFO

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=da50ad6ee5ceef6e81a96af0f2affcfe961c9d9f
---

 src/libbluray/bluray.c | 1 +
 src/libbluray/bluray.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index fdaadc5..c515019 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -2672,6 +2672,7 @@ static BLURAY_TITLE_INFO* _fill_title_info(NAV_TITLE* title, uint32_t title_idx,
             BLURAY_CLIP_INFO *ci = &title_info->clips[ii];
             NAV_CLIP *nc = &title->clip_list.clip[ii];
 
+            memcpy(ci->clip_id, pi->clip->clip_id, sizeof(ci->clip_id));
             ci->pkt_count = nc->end_pkt - nc->start_pkt;
             ci->start_time = (uint64_t)nc->title_time * 2;
             ci->in_time = (uint64_t)pi->in_time * 2;
diff --git a/src/libbluray/bluray.h b/src/libbluray/bluray.h
index 997f59d..725292e 100644
--- a/src/libbluray/bluray.h
+++ b/src/libbluray/bluray.h
@@ -244,6 +244,7 @@ typedef struct bd_clip {
     uint64_t           start_time;  /* start media time, 90kHz, ("playlist time") */
     uint64_t           in_time;     /* start timestamp, 90kHz */
     uint64_t           out_time;    /* end timestamp, 90kHz */
+    char               clip_id[6];
 } BLURAY_CLIP_INFO;
 
 typedef struct bd_chapter {



More information about the libbluray-devel mailing list