)]}'
{
  "commit": "573c5c6224a4299603d510c0dd8e572cf0a635aa",
  "tree": "fd6f904ee6cc4553d9188bbe42e17c2c44892f0e",
  "parents": [
    "404676101034905b771d9cec040976199629289a"
  ],
  "author": {
    "name": "Henrik Boström",
    "email": "hbos@google.com",
    "time": "Wed Sep 02 14:11:17 2026"
  },
  "committer": {
    "name": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "email": "webrtc-scoped@luci-project-accounts.iam.gserviceaccount.com",
    "time": "Wed Sep 02 16:23:47 2026"
  },
  "message": "Fix issue where codec fallback skips first codec in list.\n\nBefore this CL, `ApplyEncoderSwitch` implicitly assumed that\n`send_codec()` is the first codec in `negotiated_codecs_`, but this is a\nvery outdated assumption that assumes that the only way to pick a codec\nis with the SDP preference order (e.g. `SetCodecPreferences()` or SDP\nmunging).\n\nBut it has long been the case that `SetParameters()` can pick another\ncodec. This CL updates the logic to remove the `send_codec()` where\never it is located, resulting in the next codec to test being the first\none in the list should the current one not be the first one already.\n\nBug: chromium:556170878\nChange-Id: I7c8f50537ef52cae3af2c0d460096a4b97045703\nReviewed-on: https://webrtc-review.googlesource.com/c/src/+/498561\nReviewed-by: Ilya Nikolaevskiy \u003cilnik@webrtc.org\u003e\nCommit-Queue: Henrik Boström \u003chbos@webrtc.org\u003e\nCr-Commit-Position: refs/heads/main@{#48477}\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "99f093e3b70c17927f4f3dec9105ae230f8b9c63",
      "old_mode": 33188,
      "old_path": "media/engine/webrtc_video_engine.cc",
      "new_id": "4b173d5c564c9ddb9d05f850f231409aeb382958",
      "new_mode": 33188,
      "new_path": "media/engine/webrtc_video_engine.cc"
    },
    {
      "type": "modify",
      "old_id": "026e0bf4115d6c285513e289220824585f2e0a5a",
      "old_mode": 33188,
      "old_path": "media/engine/webrtc_video_engine_unittest.cc",
      "new_id": "65308a9876e98118cf1abd5597b4679f3e0995b4",
      "new_mode": 33188,
      "new_path": "media/engine/webrtc_video_engine_unittest.cc"
    }
  ]
}
