diff --git a/components/bt/host/bluedroid/btc/profile/std/avrc/btc_avrc.c b/components/bt/host/bluedroid/btc/profile/std/avrc/btc_avrc.c index 52a8962a49..20ce222c26 100644 --- a/components/bt/host/bluedroid/btc/profile/std/avrc/btc_avrc.c +++ b/components/bt/host/bluedroid/btc/profile/std/avrc/btc_avrc.c @@ -564,7 +564,7 @@ static void handle_rc_attributes_rsp (tAVRC_MSG_VENDOR *vendor_msg) btc_avrc_ct_cb_to_app(ESP_AVRC_CT_METADATA_RSP_EVT, ¶m[i]); - attr_index += (int) vendor_msg->p_vendor_data[7 + attr_index] + 8; + attr_index += attr_length + 8; } }