Loading media/libmediaplayerservice/nuplayer/NuPlayer.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -749,6 +749,15 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) { ALOGV("Mime \"%s\" mapped to audio_format 0x%x", mime.c_str(), audioFormat); int32_t aacProfile = -1; if (audioFormat == AUDIO_FORMAT_AAC && format->findInt32("aac-profile", &aacProfile)) { // Redefine AAC format as per aac profile mapAACProfileToAudioFormat( audioFormat, aacProfile); } flags |= AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD; offloadInfo.duration_us = -1; Loading media/libstagefright/Utils.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,11 @@ status_t convertMetaDataToMessage( if (meta->findInt32(kKeyIsADTS, &isADTS)) { msg->setInt32("is-adts", true); } int32_t aacProfile = -1; if (meta->findInt32(kKeyAACAOT, &aacProfile)) { msg->setInt32("aac-profile", aacProfile); } } int32_t maxInputSize; Loading Loading
media/libmediaplayerservice/nuplayer/NuPlayer.cpp +9 −0 Original line number Diff line number Diff line Loading @@ -749,6 +749,15 @@ void NuPlayer::onMessageReceived(const sp<AMessage> &msg) { ALOGV("Mime \"%s\" mapped to audio_format 0x%x", mime.c_str(), audioFormat); int32_t aacProfile = -1; if (audioFormat == AUDIO_FORMAT_AAC && format->findInt32("aac-profile", &aacProfile)) { // Redefine AAC format as per aac profile mapAACProfileToAudioFormat( audioFormat, aacProfile); } flags |= AUDIO_OUTPUT_FLAG_COMPRESS_OFFLOAD; offloadInfo.duration_us = -1; Loading
media/libstagefright/Utils.cpp +5 −0 Original line number Diff line number Diff line Loading @@ -135,6 +135,11 @@ status_t convertMetaDataToMessage( if (meta->findInt32(kKeyIsADTS, &isADTS)) { msg->setInt32("is-adts", true); } int32_t aacProfile = -1; if (meta->findInt32(kKeyAACAOT, &aacProfile)) { msg->setInt32("aac-profile", aacProfile); } } int32_t maxInputSize; Loading