OSDN Git Service

fix problem with delayed audio when using point-to-point
authorjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 13 Nov 2010 17:34:14 +0000 (17:34 +0000)
committerjstebbins <jstebbins@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 13 Nov 2010 17:34:14 +0000 (17:34 +0000)
first audio buffer after finding start point had bad start time calculation.

git-svn-id: svn://localhost/HandBrake/trunk@3675 b64f7644-9d1e-0410-96f1-a4d463321fa5

libhb/sync.c

index 995c3d1..34ce460 100644 (file)
@@ -999,6 +999,7 @@ static int syncAudioWork( hb_work_object_t * w, hb_buffer_t ** buf_in,
         {
             hb_cond_timedwait( pv->common->next_frame, pv->common->mutex, 200 );
         }
+        start = buf->start - pv->common->audio_pts_slip;
     }
     if ( start < 0 )
     {