summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRodeo <[email protected]>2013-01-04 14:05:33 +0000
committerRodeo <[email protected]>2013-01-04 14:05:33 +0000
commit16bf6e9e82f97d6e866877013f30eeaea1a5a240 (patch)
tree1fcd40cf8fc255fa356e1fb6a382a943b0741edf
parentae13b6551611d91df517b187a28d5c13bcf82d08 (diff)
CLI: avoid an #fidef.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@5146 b64f7644-9d1e-0410-96f1-a4d463321fa5
-rw-r--r--libhb/common.c1
-rw-r--r--test/test.c6
2 files changed, 2 insertions, 5 deletions
diff --git a/libhb/common.c b/libhb/common.c
index 29435b669..978972269 100644
--- a/libhb/common.c
+++ b/libhb/common.c
@@ -108,6 +108,7 @@ hb_encoder_t hb_video_encoders[] =
};
int hb_video_encoders_count = sizeof(hb_video_encoders) / sizeof(hb_encoder_t);
+// note: the first encoder in the list must be AAC
hb_encoder_t hb_audio_encoders[] =
{
#ifdef __APPLE__
diff --git a/test/test.c b/test/test.c
index 03b9658f6..1e9717df8 100644
--- a/test/test.c
+++ b/test/test.c
@@ -2179,11 +2179,7 @@ static int HandleEvents( hb_handle_t * h )
{
fprintf( stderr, "AAC Passthru requested and input codec is not AAC for track %d, using AAC encoder\n",
audio->out.track );
-#ifdef __APPLE_CC__
- audio->out.codec = HB_ACODEC_CA_AAC;
-#else
- audio->out.codec = HB_ACODEC_FAAC;
-#endif
+ audio->out.codec = hb_audio_encoders[0].encoder;
}
else if( audio->out.codec == HB_ACODEC_AC3_PASS )
{