)]}'
{
  "commit": "ae4a755761c3acc2b5b15731a8ae36d87c920e67",
  "tree": "716e65cb1a078fba71ce279ef75736f21aaedfb3",
  "parents": [
    "91fddd9386c2e50e6fed87af2bed8b33da058a24"
  ],
  "author": {
    "name": "Jean-Michel Trivi",
    "email": "jmtrivi@google.com",
    "time": "Fri Jul 08 18:18:07 2022 +0000"
  },
  "committer": {
    "name": "Android Build Coastguard Worker",
    "email": "android-build-coastguard-worker@google.com",
    "time": "Fri Aug 19 18:42:56 2022 +0000"
  },
  "message": "MediaPlayer: fix channel mask handling\n\nThe AAC decoder is publishing the decoded channel mask using the\nexpected format for KEY_CHANNEL_MASK, which uses the Java AudioFormat\nmask definitions.\nThe MediaPlayer implementation was treating published channel masks\n(when found in the decoded format) as using the native mask format,\ncausing the \"stereo Java mask\" value of 0b1100 to be handled\nas AUDIO_CHANNEL_OUT_FRONT_CENTER | AUDIO_CHANNEL_OUT_LOW_FREQUENCY.\nThe fix consists in converting from the AudioFormat format to\nthe audio_channel_mask_t format, unless the two least significant\nbits are non-zero (for compatibility with legacy extractors).\n\nBug: 238115866\nTest: repro in bug playing RTSP stream w/ captions on\nChange-Id: Ie8b57e20927d90e45b0f69a23a6777af7a39794d\nMerged-In: Ie8b57e20927d90e45b0f69a23a6777af7a39794d\n(cherry picked from commit 275aa3935f1d81df369a8ce62eef30051012c436)\nMerged-In: Ie8b57e20927d90e45b0f69a23a6777af7a39794d\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "cb050f9b50ec514e06b49e0410f017af37402742",
      "old_mode": 33188,
      "old_path": "media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp",
      "new_id": "45fac764e067128138e70c56a8a3d1e1eff9ea5b",
      "new_mode": 33188,
      "new_path": "media/libmediaplayerservice/nuplayer/NuPlayerRenderer.cpp"
    }
  ]
}
