summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorRodeo <[email protected]>2012-03-25 15:24:50 +0000
committerRodeo <[email protected]>2012-03-25 15:24:50 +0000
commit5f9578cc46e6b7c88477542815b6f8c3eaa6ee5f (patch)
tree1724d5b8256e4f32758ae5793e274058ba2f48df /test
parent763a1742df56afd54602dea5c42c4fb6d0f27ef5 (diff)
Add Auto Passthru support to manicure.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4539 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'test')
-rw-r--r--test/test.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.c b/test/test.c
index 0f2edc8a6..b600577d3 100644
--- a/test/test.c
+++ b/test/test.c
@@ -66,7 +66,7 @@ static int vcodec = HB_VCODEC_FFMPEG_MPEG4;
static hb_list_t * audios = NULL;
static hb_audio_config_t * audio = NULL;
static int num_audio_tracks = 0;
-static int allowed_audio_copy = HB_ACODEC_PASS_MASK;
+static int allowed_audio_copy = -1;
static char * mixdowns = NULL;
static char * dynamic_range_compression = NULL;
static char * audio_gain = NULL;
@@ -2084,7 +2084,7 @@ static int HandleEvents( hb_handle_t * h )
if( audio->out.codec == HB_ACODEC_AUTO_PASS )
{
// Auto Passthru
- job->acodec_copy_mask = allowed_audio_copy;
+ job->acodec_copy_mask = allowed_audio_copy == -1 ? HB_ACODEC_PASS_MASK : allowed_audio_copy;
job->acodec_fallback = acodec_fallback ? get_acodec_for_string( acodec_fallback ) : 0;
// sanitize the fallback; -1 isn't a valid HB_ACODEC_* value
if( job->acodec_fallback == -1 )