[libbluray-devel] Fix stream position when seamless angle change point is at clip boundary

hpi1 git at videolan.org
Thu Jul 17 11:43:35 CEST 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Thu Jul 17 12:31:26 2014 +0300| [674cb39cf46c0e15e27b845274d9da3e4c77ed60] | committer: hpi1

Fix stream position when seamless angle change point is at clip boundary

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

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

diff --git a/ChangeLog b/ChangeLog
index 1d3978a..75e1b50 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,5 @@
 2014-xx-xx: Version 0.6.1
+- Fix stream position when seamless angle change point is at clip boundary.
 - Fix Mac OS X jni compilation
 - Fix bd_seek() jumping outside of clip/playlist.
 - Fix out of array bounds exception in some BD-J menus
diff --git a/src/libbluray/bluray.c b/src/libbluray/bluray.c
index 0585b83..c2f4ffa 100644
--- a/src/libbluray/bluray.c
+++ b/src/libbluray/bluray.c
@@ -1768,7 +1768,7 @@ static int _bd_read(BLURAY *bd, unsigned char *buf, int len)
                         if (!_open_m2ts(bd, st)) {
                             return -1;
                         }
-                        bd->s_pos = st->clip->pos;
+                        bd->s_pos = st->clip->pos * 192;
                     } else {
                         _change_angle(bd);
                         _clip_seek_time(bd, bd->angle_change_time);



More information about the libbluray-devel mailing list