)]}'
{
  "commit": "9da2684f35d5d0c9fc1db0b86019992cb3af519a",
  "tree": "8a615a46d3e5d26e7d1780a740df3df9ddae21ea",
  "parents": [
    "85a0176b06a3e06ed909c239c63e1868f30f5d24"
  ],
  "author": {
    "name": "Henrik Lundin",
    "email": "henrik.lundin@webrtc.org",
    "time": "Wed May 27 09:32:33 2026"
  },
  "committer": {
    "name": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Wed May 27 12:23:08 2026"
  },
  "message": "NetEq: Align correlation buffer size in Merge with DspHelper expectations\n\nThe peak-detection algorithm (`DspHelper::PeakDetection`) expects one\nextra element in the input buffer when `num_peaks \u003d\u003d 1` because the\nboundary parabolic fit algorithm may read index `data_length`.\n\nWhile `TimeStretch` allocated this extra element, `Merge` did not, which\nconstituted a minor API contract mismatch. Although this is mathematically\nunreachable in practice due to zero-initialization constraints in the\ncorrelation pipeline, we should align `Merge`\u0027s allocation with\n`DspHelper`\u0027s expectations to improve code consistency and readability.\n\nThis CL adds the `+1` safety margin to the correlation buffer allocation\nin `Merge` to match the pattern used in `TimeStretch`. We also modernize\nthe allocation to use std::vector for cleaner memory management.\n\nBUG\u003dNone\n\nChange-Id: Ie932dd298892bfba3b7c35f34e1774e13ecee34f\nReviewed-on: https://webrtc-review.googlesource.com/c/src/+/475001\nAuto-Submit: Henrik Lundin \u003chenrik.lundin@webrtc.org\u003e\nReviewed-by: Jakob Ivarsson‎ \u003cjakobi@webrtc.org\u003e\nCommit-Queue: Jakob Ivarsson‎ \u003cjakobi@webrtc.org\u003e\nCr-Commit-Position: refs/heads/main@{#47821}\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "4aead7df18b2fb94fd0ca8ed467a475d495ff279",
      "old_mode": 33188,
      "old_path": "modules/audio_coding/neteq/dsp_helper.h",
      "new_id": "ec651464cc7c323bc3ace43af3bb1c6b24937a6f",
      "new_mode": 33188,
      "new_path": "modules/audio_coding/neteq/dsp_helper.h"
    },
    {
      "type": "modify",
      "old_id": "ac1f51d0b76103badeacc9497a78aa6762680534",
      "old_mode": 33188,
      "old_path": "modules/audio_coding/neteq/merge.cc",
      "new_id": "8a9931f054fcf4d755f944c35035d08d2a3b749c",
      "new_mode": 33188,
      "new_path": "modules/audio_coding/neteq/merge.cc"
    }
  ]
}
