diff options
author | jstebbins <[email protected]> | 2011-02-11 17:00:13 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2011-02-11 17:00:13 +0000 |
commit | 4c04eed8e4b78c34a455516653d2af2ce24a8cb0 (patch) | |
tree | bf9495525a56a847b370e5382689d78f02ea1f48 /libhb | |
parent | 9419225f671c1befca6ac514a66848197f3c89d0 (diff) |
fix sync issue introduced in 3786
Thanks to mac_man_ad for pointing this out and providing a sample.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3791 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb')
-rw-r--r-- | libhb/decavcodec.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libhb/decavcodec.c b/libhb/decavcodec.c index 57d441173..298fba69d 100644 --- a/libhb/decavcodec.c +++ b/libhb/decavcodec.c @@ -1602,6 +1602,11 @@ static void decodeAudio( hb_audio_t * audio, hb_work_private_t *pv, uint8_t *dat nsamples = out_size / 2; } + if ( pts == AV_NOPTS_VALUE ) + { + pts = pv->pts_next; + } + hb_buffer_t * buf; double pts_next = pts + nsamples * pv->duration; buf = downmixAudio( audio, pv, buffer, context->channels, nsamples ); |