mirror of
https://github.com/pikvm/ustreamer.git
synced 2026-03-17 04:53:42 +00:00
increased max buffer size
This commit is contained in:
@@ -409,9 +409,9 @@ static void _device_open_alloc_picbufs(struct device_t *dev) {
|
|||||||
LOG_DEBUG("Allocating picture buffers ...");
|
LOG_DEBUG("Allocating picture buffers ...");
|
||||||
A_CALLOC(dev->run->pictures, dev->run->n_buffers);
|
A_CALLOC(dev->run->pictures, dev->run->n_buffers);
|
||||||
|
|
||||||
dev->run->max_picture_size = (dev->run->width * dev->run->height) << 1;
|
dev->run->max_picture_size = ((dev->run->width * dev->run->height) << 1) * 2;
|
||||||
for (unsigned index = 0; index < dev->run->n_buffers; ++index) {
|
for (unsigned index = 0; index < dev->run->n_buffers; ++index) {
|
||||||
LOG_DEBUG("Allocating picture buffer %d ...", index);
|
LOG_DEBUG("Allocating picture buffer %d sized %lu bytes... ", index, dev->run->max_picture_size);
|
||||||
A_CALLOC(dev->run->pictures[index].data, dev->run->max_picture_size);
|
A_CALLOC(dev->run->pictures[index].data, dev->run->max_picture_size);
|
||||||
dev->run->pictures[index].allocated = dev->run->max_picture_size;
|
dev->run->pictures[index].allocated = dev->run->max_picture_size;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user