summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 )
{