Skip to content

Commit

Permalink
Fix bytesperline calculation for libcamera0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
KapJI committed Mar 1, 2024
1 parent 54bdd9d commit 0464c31
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions device/libcamera/buffer_list.cc
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,8 @@ int libcamera_buffer_list_open(buffer_list_t *buf_list)
}
if (buf_list->fmt.bytesperline > 0) {
configuration.stride = buf_list->fmt.bytesperline;
} else {
configuration.stride = 0;
}
if (buf_list->fmt.nbufs > 0) {
configuration.bufferCount = buf_list->fmt.nbufs;
Expand Down

0 comments on commit 0464c31

Please sign in to comment.