From 6fb8692d2e29f1f8f431442ad41d88b261678bff Mon Sep 17 00:00:00 2001 From: Chris Pinkham Date: Thu, 19 Jul 2012 23:55:28 -0700 Subject: [PATCH] Switch HLS audio encoding back to AAC by default. AAC audio seems to work fine everywhere I test except for my iPhone 3GS running iOS 4.1, so this may be a bug that has been fixed elsewhere. MP3 audio can still be enabled if you know what you're doing by looking at the patch/code. --- mythtv/programs/mythtranscode/transcode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mythtv/programs/mythtranscode/transcode.cpp b/mythtv/programs/mythtranscode/transcode.cpp index 74fa7015d21..11ed31394b3 100755 --- a/mythtv/programs/mythtranscode/transcode.cpp +++ b/mythtv/programs/mythtranscode/transcode.cpp @@ -1097,7 +1097,7 @@ int Transcode::TranscodeFile(const QString &inputname, avfw2->SetContainer("mpegts"); - if (gCoreContext->GetNumSetting("HLSAACAUDIO", 0)) + if (gCoreContext->GetNumSetting("HLSAACAUDIO", 1)) avfw2->SetAudioCodec("aac"); else avfw2->SetAudioCodec("libmp3lame"); @@ -1112,7 +1112,7 @@ int Transcode::TranscodeFile(const QString &inputname, avfw->SetContainer("mpegts"); avfw->SetVideoCodec("libx264"); - if (gCoreContext->GetNumSetting("HLSAACAUDIO", 0)) + if (gCoreContext->GetNumSetting("HLSAACAUDIO", 1)) avfw->SetAudioCodec("aac"); else avfw->SetAudioCodec("libmp3lame");