Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9fee705b authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

Merge changes I4ff28737,I8433c40a into sc-dev

* changes:
  Utils: intialize bitrate to 0
  NuPlayerRenderer: intialize bitrate to 0
parents 62672df4 ffcbc027
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1962,7 +1962,7 @@ status_t NuPlayer::Renderer::onOpenAudioSink(
            ALOGV("Mime \"%s\" mapped to audio_format 0x%x",
                    mime.c_str(), audioFormat);

            int avgBitRate = -1;
            int avgBitRate = 0;
            format->findInt32("bitrate", &avgBitRate);

            int32_t aacProfile = -1;
+1 −1
Original line number Diff line number Diff line
@@ -2169,7 +2169,7 @@ status_t getAudioOffloadInfo(const sp<MetaData>& meta, bool hasVideo,
    }
    info->duration_us = duration;

    int32_t brate = -1;
    int32_t brate = 0;
    if (!meta->findInt32(kKeyBitRate, &brate)) {
        ALOGV("track of type '%s' does not publish bitrate", mime);
    }