OSDN Git Service

Fix initial chapter number when doing p-to-p in bluray
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 13 Nov 2010 22:18:06 +0000 (22:18 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 13 Nov 2010 22:18:06 +0000 (22:18 +0000)
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

index 4e682af..cee6350 100644 (file)
@@ -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;
 }