replay/CameraServer: yuv_buf should not be null (#25545)

old-commit-hash: f95519cb44
taco
Dean Lee 3 years ago committed by GitHub
parent a9f4294d99
commit 06556bd76a
  1. 3
      tools/replay/camera.cc

@ -37,7 +37,8 @@ void CameraServer::startVipcServer() {
void CameraServer::cameraThread(Camera &cam) {
auto read_frame = [&](FrameReader *fr, int frame_id) {
VisionBuf *yuv_buf = vipc_server_->get_buffer(cam.stream_type);
bool ret = fr->get(frame_id, yuv_buf ? (uint8_t *)yuv_buf->addr : nullptr);
assert(yuv_buf);
bool ret = fr->get(frame_id, (uint8_t *)yuv_buf->addr);
return ret ? yuv_buf : nullptr;
};

Loading…
Cancel
Save