aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorIgor Kuzmin <parafin@ximea.com>2012-06-22 14:48:01 +0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2012-06-24 00:43:11 +0200
commit662d6534c7683699a7d2695bee1e873aa243360e (patch)
treed10b21ee0ffe1ed2f00d08e41be86c13f3acd8f5
parent82b51be6789aecc2d881232db6ea841d8d0ab8f9 (diff)
downloadlibraw1394-662d6534c7683699a7d2695bee1e873aa243360e.tar.gz
Disable power-of-2 alignment of isochronous I/O buffers
This can save some memory. (The library user can always round max packet size himself if it's needed for some reason.) Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
-rw-r--r--src/fw-iso.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fw-iso.c b/src/fw-iso.c
index 8e8149e..0d2039d 100644
--- a/src/fw-iso.c
+++ b/src/fw-iso.c
@@ -491,7 +491,7 @@ iso_init(fw_handle_t handle, int type,
handle->iso.xmit_handler = xmit_handler;
handle->iso.recv_handler = recv_handler;
handle->iso.buf_packets = buf_packets;
- handle->iso.max_packet_size = round_to_power_of_two(max_packet_size);
+ handle->iso.max_packet_size = max_packet_size;
handle->iso.packet_phase = 0;
handle->iso.packet_count = 0;
handle->iso.packets =