From df71911cdabb4e1075d82c54175e50fb6544affc Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sat, 13 Nov 2010 22:18:06 +0000 Subject: [PATCH] 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://localhost/HandBrake/trunk@3676 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/bd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libhb/bd.c b/libhb/bd.c index 4e682af0..cee6350c 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; } -- 2.11.0