summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dabplus-enc.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/dabplus-enc.cpp b/src/dabplus-enc.cpp
index c22cb9d..3813041 100644
--- a/src/dabplus-enc.cpp
+++ b/src/dabplus-enc.cpp
@@ -1146,8 +1146,12 @@ int main(int argc, char *argv[])
zmq_frame_header->audiolevel_left = peak_left;
zmq_frame_header->audiolevel_right = peak_right;
- memcpy(ZMQ_FRAME_DATA(zmq_frame_header),
- &toolame_output_buffer[0], 3 * bitrate);
+ uint8_t *encoded_frame = ZMQ_FRAME_DATA(zmq_frame_header);
+
+ // no memcpy for std::deque
+ for (size_t i = 0; i < 3*bitrate; i++) {
+ encoded_frame[i] = toolame_output_buffer[i];
+ }
zmq_sock.send(&zmqframebuf[0], ZMQ_FRAME_SIZE(zmq_frame_header),
ZMQ_DONTWAIT);