[libbluray-devel] nav_clip_packet_search(): set timestamp to in_time when it is before in_time
hpi1
git at videolan.org
Fri Jun 3 12:51:07 CEST 2016
libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Fri Jun 3 13:41:11 2016 +0300| [1e313e06ee78d2ce909e1acd8db3de4457c32655] | committer: hpi1
nav_clip_packet_search(): set timestamp to in_time when it is before in_time
EP map does not store lowest bits of timestamp.
> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=1e313e06ee78d2ce909e1acd8db3de4457c32655
---
src/libbluray/bdnav/navigation.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/libbluray/bdnav/navigation.c b/src/libbluray/bdnav/navigation.c
index dbf230c..090883c 100644
--- a/src/libbluray/bdnav/navigation.c
+++ b/src/libbluray/bdnav/navigation.c
@@ -784,6 +784,11 @@ void nav_clip_packet_search(NAV_CLIP *clip, uint32_t pkt, uint32_t *clip_pkt, ui
if (*clip_pkt < clip->start_pkt) {
*clip_pkt = clip->start_pkt;
}
+ if (*clip_time && *clip_time < clip->in_time) {
+ /* EP map does not store lowest 8 bits of timestamp */
+ *clip_time = clip->in_time;
+ }
+
} else {
*clip_pkt = clip->start_pkt;
}
More information about the libbluray-devel
mailing list