From 4a6b5bc4288b5738b1da201a25dd868e90b9febe Mon Sep 17 00:00:00 2001 From: jstebbins Date: Sun, 1 Apr 2012 15:40:08 +0000 Subject: merge fix for audio gaps to bugfix branch git-svn-id: svn://svn.handbrake.fr/HandBrake/branches/0.9.x@4575 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- libhb/decavcodec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index fd58c5c28..80c68fd4d 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1409,7 +1409,9 @@ static void decodeAudio( hb_audio_t * audio, hb_work_private_t *pv, uint8_t *dat int pos = 0; int loop_limit = 256; - if ( pts != -1 ) + // If we are givn a pts, use it. + // But don't loose partial ticks. + if ( pts != -1 && (int64_t)pv->pts_next != pts ) pv->pts_next = pts; while ( pos < size ) { -- cgit v1.2.3