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

Commit af5e66cb authored by Tao Wu's avatar Tao Wu Committed by Gerrit Code Review
Browse files

Merge "AudioFlinger: Initialize frames to zero."

parents 5c031de6 1eb82df6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1570,7 +1570,7 @@ size_t AudioFlinger::getInputBufferSize(uint32_t sampleRate, audio_format_t form
    proposed.format = format;

    sp<DeviceHalInterface> dev = mPrimaryHardwareDev->hwDevice();
    size_t frames;
    size_t frames = 0;
    for (;;) {
        // Note: config is currently a const parameter for get_input_buffer_size()
        // but we use a copy from proposed in case config changes from the call.