camera: make comments more consistent

This commit is contained in:
Pierre Pronchery 2024-09-04 18:35:26 +02:00
parent 9e855dad62
commit 88701c479b

View File

@ -1711,7 +1711,7 @@ static int _open_setup_read(Camera * camera)
strerror(errno)); strerror(errno));
camera->raw_buffer = p; camera->raw_buffer = p;
camera->raw_buffer_cnt = cnt; camera->raw_buffer_cnt = cnt;
/* allocate the rgb buffer */ /* allocate the RGB buffer */
cnt = camera->format.fmt.pix.width * camera->format.fmt.pix.height * 3; cnt = camera->format.fmt.pix.width * camera->format.fmt.pix.height * 3;
if((p = realloc(camera->rgb_buffer, cnt)) == NULL) if((p = realloc(camera->rgb_buffer, cnt)) == NULL)
return error_set_code(-errno, "%s: %s", camera->device, return error_set_code(-errno, "%s: %s", camera->device,