)]}'
{
  "commit": "08879e8e75dc61d0727b56a5a12dff96c115ec39",
  "tree": "77d21b00bf16572078fe20f8b777b7b2451f7332",
  "parents": [
    "78e26c6d00d54b02c58a92d9cb7c360bf77ef86b"
  ],
  "author": {
    "name": "Alejandro Pacheco",
    "email": "alepacheco99@gmail.com",
    "time": "Wed Oct 14 15:06:00 2026 +0200"
  },
  "committer": {
    "name": "Jerome Jiang",
    "email": "jianj@google.com",
    "time": "Wed Nov 25 07:33:14 2026 -0800"
  },
  "message": "encoder: clear cost and SMS tree pointers with their buffers\n\nalloc_compressor_data() frees td.mv_costs_alloc and, when the encoder\nuses only key frames (kf_max_dist 0), does not allocate it again, but\ntd.mb.mv_costs kept pointing at the freed block. av1_change_config()\nalso frees the simple-motion-search tree before calling it, and\nav1_setup_sms_tree() returns early for key-frame-only encoding,\nleaving td.sms_root pointing into the freed tree. Growing the frame\nsize with aom_codec_enc_config_set() while switching to kf_max_dist 0\nmade the next frame write through both pointers.\n\nMake the pointers follow their buffers: assign mb.mv_costs from\nmv_costs_alloc unconditionally, clear mb.mv_costs, mb.dv_costs and\nsms_root wherever the buffers they point into are freed, and free the\ntree in av1_setup_sms_tree() when it is not needed. Worker threads\ncopy the main thread\u0027s costs only when they exist; the code using\nthem already handles NULL.\n\nThe buffers are freed rather than allocated again, so the encoder\ncannot go back to inter frames afterwards: this relies on\nhttps://aomedia-review.googlesource.com/c/aom/+/218983, which rejects\nraising kf_max_dist from 0. Without it, raising kf_max_dist again\nstill crashes.\n\nTAG\u003dagy\nCONV\u003d74ece8ab-3f39-4cda-9df8-8325c945d9d9\n\nBug: 573427857\nChange-Id: I50b614033fda784ad76bedbeeddac86a13abf21d\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "33103844b5b803a712cfa8d5357682913915ee3a",
      "old_mode": 33188,
      "old_path": "av1/encoder/context_tree.c",
      "new_id": "0075fcc6d3c0f855abdd354c8666b4bbfb4b4d83",
      "new_mode": 33188,
      "new_path": "av1/encoder/context_tree.c"
    },
    {
      "type": "modify",
      "old_id": "5d14e5d279934e2c95e30722ebae0cdddb86da10",
      "old_mode": 33188,
      "old_path": "av1/encoder/encoder_alloc.h",
      "new_id": "1295aedd573f69e120f95a127123e419c3af8ce4",
      "new_mode": 33188,
      "new_path": "av1/encoder/encoder_alloc.h"
    },
    {
      "type": "modify",
      "old_id": "8ca1efc38c515f56a0c7890fc4ab596688359069",
      "old_mode": 33188,
      "old_path": "av1/encoder/ethread.c",
      "new_id": "5f90a064540d658ee099acf0dcebe27a1edbb926",
      "new_mode": 33188,
      "new_path": "av1/encoder/ethread.c"
    },
    {
      "type": "modify",
      "old_id": "c0eb48f936db6cf18c8bd7758a1955aaf854f629",
      "old_mode": 33188,
      "old_path": "test/encode_api_test.cc",
      "new_id": "c0db30a41eae671b0d9db54b62e60369ea8f68c2",
      "new_mode": 33188,
      "new_path": "test/encode_api_test.cc"
    }
  ]
}
