diff options
author | jstebbins <[email protected]> | 2010-11-13 22:18:06 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2010-11-13 22:18:06 +0000 |
commit | ed375bc5af90df51dd7001c9ed9a6a30493a3b71 (patch) | |
tree | 39dc0eaa939dbe14af581a33bd1dc0ae7105122e | |
parent | 796eed0b65d5de0ab0c3b9705950c14243f0a0e3 (diff) |
Fix initial chapter number when doing p-to-p in bluray
when seeking in bluray, lookup the current chapter when seek is complete
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3676 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r-- | libhb/bd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libhb/bd.c b/libhb/bd.c index 4e682af00..cee6350c0 100644 --- a/libhb/bd.c +++ b/libhb/bd.c @@ -434,12 +434,14 @@ int hb_bd_seek( hb_bd_t * d, float f ) uint64_t packet = f * d->pkt_count; bd_seek(d->bd, packet * 192); + d->next_chap = bd_get_current_chapter( d->bd ) + 1; return 1; } int hb_bd_seek_pts( hb_bd_t * d, uint64_t pts ) { bd_seek_time(d->bd, pts); + d->next_chap = bd_get_current_chapter( d->bd ) + 1; return 1; } |