[libbluray-devel] [PATCH 1/2] fix mark->title_pkt calculation

John Stebbins stebbins at jetheaddev.com
Fri Apr 8 22:10:18 CEST 2016


---
 src/libbluray/bdnav/navigation.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdnav/navigation.c b/src/libbluray/bdnav/navigation.c
index 60eccbb..a263c16 100644
--- a/src/libbluray/bdnav/navigation.c
+++ b/src/libbluray/bdnav/navigation.c
@@ -476,7 +476,7 @@ _fill_mark(NAV_TITLE *title, NAV_MARK *mark, int entry)
     } else {
         mark->clip_pkt = clip->start_pkt;
     }
-    mark->title_pkt = clip->title_pkt + mark->clip_pkt;
+    mark->title_pkt = clip->title_pkt + mark->clip_pkt - clip->start_pkt;
     mark->clip_time = plm->time;
 
     // Calculate start of mark relative to beginning of playlist
-- 
2.5.5



More information about the libbluray-devel mailing list