diff options
author | van <[email protected]> | 2008-08-18 20:05:47 +0000 |
---|---|---|
committer | van <[email protected]> | 2008-08-18 20:05:47 +0000 |
commit | a21b52d9349c3e5f73c895beaec9e5e6f36403f3 (patch) | |
tree | ad5f3bc20e3e58f2479e7ef202856c277134031f /libhb/hb.c | |
parent | 37e3888441e68c1eb77faa9f82a9e6f27f9a64f8 (diff) |
The per-stream timing changes (r1570) make the overall timing depend on which media streams we process. So we can't ignore audio during pass 1 or the video timing will change between passes & make x264 abort. (Thanks to jbrjake for pointing out the problem.)
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@1643 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'libhb/hb.c')
-rw-r--r-- | libhb/hb.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/libhb/hb.c b/libhb/hb.c index f73a2437e..cde51322c 100644 --- a/libhb/hb.c +++ b/libhb/hb.c @@ -867,15 +867,11 @@ void hb_add( hb_handle_t * h, hb_job_t * job ) /* Copy the audio track(s) we want */ title_copy->list_audio = hb_list_init(); - /* Do nothing about audio during first pass */ - if( job->pass == 0 || job->pass == 2 ) + for( i = 0; i < hb_list_count(job->list_audio); i++ ) { - for( i = 0; i < hb_list_count(job->list_audio); i++ ) + if( ( audio = hb_list_item( job->list_audio, i ) ) ) { - if( ( audio = hb_list_item( job->list_audio, i ) ) ) - { - hb_list_add( title_copy->list_audio, hb_audio_copy(audio) ); - } + hb_list_add( title_copy->list_audio, hb_audio_copy(audio) ); } } |