diff options
author | jbrjake <[email protected]> | 2007-07-25 22:20:41 +0000 |
---|---|---|
committer | jbrjake <[email protected]> | 2007-07-25 22:20:41 +0000 |
commit | 2c12dc427e857334b3d744ddf8829590f6ee3906 (patch) | |
tree | 529c02d37fd1e00319fb378a00cf82780bc46228 /libhb/deca52.c | |
parent | 2d9fb029986e17218272e01ae1c629237e5c204d (diff) |
This patch from eddyg should help alleviate HandBrake's audio drop issues. It also adds a number of beautiful comments to sync.c that really help clarify the code. Thanks, eddy!
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@738 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/deca52.c')
-rw-r--r-- | libhb/deca52.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/deca52.c b/libhb/deca52.c index 88974d55d..de33b3e06 100644 --- a/libhb/deca52.c +++ b/libhb/deca52.c @@ -201,6 +201,11 @@ static hb_buffer_t * Decode( hb_work_object_t * w ) buf->start = pts + ( pos / pv->size ) * 6 * 256 * 90000 / pv->rate; buf->stop = buf->start + 6 * 256 * 90000 / pv->rate; + /* + * To track AC3 PTS add this back in again. + *hb_log("AC3: pts is %lld, buf->start %lld buf->stop %lld", pts, buf->start, buf->stop); + */ + pv->next_expected_pts = buf->stop; for( i = 0; i < 6; i++ ) |