diff options
Diffstat (limited to 'libhb/decavcodec.c')
-rw-r--r-- | libhb/decavcodec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 33b45fa12..bb7c4c3c3 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1483,7 +1483,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 ) { |