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

Commit 55a85791 authored by Ajender Reddy's avatar Ajender Reddy Committed by Eric Laurent
Browse files

NuPlayerRenderer: intialize bitrate to 0

intialize to 0 instead of -1 intialization
which caused casting error for some of
offload playbacks.
CRs-Fixed: 2888327

Bug: 183461316
Test: make

Change-Id: I8433c40a55de93a56387d1f4099fc884a97a5b33
parent c1992966
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;