diff options
author | van <[email protected]> | 2008-04-15 19:14:03 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-04-15 19:14:03 +0000 |
commit | 56d9caaefb91abc763be3a1d17d14d0e7e2e9059 (patch) | |
tree | c693cf6b581410cc53b55772bf1d5a68ddc9456f /libhb/hb.c | |
parent | b856292606251eafc70286eac8c5dc6e6fd9dd02 (diff) |
Move clock recovery code from reader to demuxmpeg so it sees all frames & not just the ones we happen to be encoding. This change gives a more accurate clock and allows us to once again ignore audio during pass 1 of a 2 pass encode.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1420 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index a6fc87fca..5f176f1ae 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -857,11 +857,7 @@ void hb_add( hb_handle_t * h, hb_job_t * job ) title_copy->list_audio = hb_list_init(); /* Do nothing about audio during first pass */ - // XXX for right now we need to see the audio in libhb/reader.c to track - // clock changes otherwise we'll discard more video frames in pass 1 than - // pass 2 & screw up the encoding. Once the clock tracking is moved from - // reader to the mpeg demuxer this code can be restored. - //if( job->pass == 0 || job->pass == 2 ) + if( job->pass == 0 || job->pass == 2 ) { for( i = 0; i < hb_list_count(job->list_audio); i++ ) { |