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

Skip to content
Commit 97f867e4 authored by Satya Krishna Pindiproli's avatar Satya Krishna Pindiproli Committed by Gerrit - the friendly Code Review server
Browse files

libstagefright: Fix crash in FLAC decoder during fallback to sw decode

- Playback of FLAC clips fail over A2DP when PCM offload is enabled.
- As offload is not supported for A2DP, playback falls back to software
  decode during which the source (FLACDecoder) is stopped and the
  buffers allocated to the decoder are freed. These buffers are not
  re-allocated before attempting to decode data due to which
  the decoder crashes.
- Allocate memory while starting the decoder instead of allocating
  it during initialization.

CRs-Fixed: 743183
Change-Id: I05d9d2328ac8b959ae112699475d80556a4738b5
parent d9b04af0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment