encoderd: use const reference for VisionBuf access (#33621)

use const reference for VisionBuf access
This commit is contained in:
Dean Lee
2024-09-23 05:11:59 +08:00
committed by GitHub
parent 6fff91d91e
commit 2b37624dee
+1 -1
View File
@@ -59,7 +59,7 @@ void encoder_thread(EncoderdState *s, const LogCameraInfo &cam_info) {
// init encoders
if (encoders.empty()) {
VisionBuf buf_info = vipc_client.buffers[0];
const VisionBuf &buf_info = vipc_client.buffers[0];
LOGW("encoder %s init %zux%zu", cam_info.thread_name, buf_info.width, buf_info.height);
assert(buf_info.width > 0 && buf_info.height > 0);