summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjstebbins <[email protected]>2012-04-01 15:40:08 +0000
committerjstebbins <[email protected]>2012-04-01 15:40:08 +0000
commit4a6b5bc4288b5738b1da201a25dd868e90b9febe (patch)
tree46de6b138dac99bde3916ba4fdd8a80a849e7421
parent356c53bcf7100925b9f36890a9392696be76b10f (diff)
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
-rw-r--r--libhb/decavcodec.c4
1 files changed, 3 insertions, 1 deletions
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 )
{