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

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

Utils: intialize bitrate to 0

intialize to 0 instead of -1 intialization
which caused casting error for flac and ape
offload playbacks.
CRs-Fixed: 2902782

Bug: 183461316
Test: make

Change-Id: I4ff287377547f647566ef2e6177f82767274dfa5
parent 55a85791
Loading
Loading
Loading
Loading
+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);
    }