diff --git a/esp_video/CHANGELOG.md b/esp_video/CHANGELOG.md index 0396ba1..33010ca 100644 --- a/esp_video/CHANGELOG.md +++ b/esp_video/CHANGELOG.md @@ -1,3 +1,6 @@ +## 1.3.1 +- Fix array bounds check failure in destroy_sccb_device() when compile option is PTIMIZATION_SIZE + ## 1.3.0 - Add RISC-V software swap byte function for DVP video device diff --git a/esp_video/idf_component.yml b/esp_video/idf_component.yml index c49fedc..7230820 100644 --- a/esp_video/idf_component.yml +++ b/esp_video/idf_component.yml @@ -1,4 +1,4 @@ -version: "1.3.0" +version: "1.3.1" description: A framework designed to support Linux V4L2, multiple cameras and video streaming. targets: - esp32p4 diff --git a/esp_video/src/esp_video_init.c b/esp_video/src/esp_video_init.c index 52e03f4..34e8707 100644 --- a/esp_video/src/esp_video_init.c +++ b/esp_video/src/esp_video_init.c @@ -293,8 +293,9 @@ static void destroy_sccb_device(esp_sccb_io_handle_t handle, esp_video_init_sccb mark[i2c_port].handle = NULL; s_sensor_sccb_mask[i2c_port].handle = NULL; - s_sensor_sccb_mask[i2c_port].sccb_io[0] = NULL; - s_sensor_sccb_mask[i2c_port].sccb_io[1] = NULL; + for (int j = 0; j < ESP_VIDEO_INIT_DEV_NUMS; j++) { + s_sensor_sccb_mask[i2c_port].sccb_io[j] = NULL; + } } } } else {