summaryrefslogtreecommitdiffstats
path: root/src/dabInputZmq.cpp
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-29 00:08:42 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2016-10-29 00:08:42 +0200
commit471e7ee279d633a7b48e73ece42677574a74ad39 (patch)
tree953130f3bea5155679dad88028d2a758bef94e56 /src/dabInputZmq.cpp
parent83d2624cdfc1dd45ab1da02881448c5584ff6050 (diff)
downloaddabmux-471e7ee279d633a7b48e73ece42677574a74ad39.tar.gz
dabmux-471e7ee279d633a7b48e73ece42677574a74ad39.tar.bz2
dabmux-471e7ee279d633a7b48e73ece42677574a74ad39.zip
Modernize a few bits and pieces
Diffstat (limited to 'src/dabInputZmq.cpp')
-rw-r--r--src/dabInputZmq.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dabInputZmq.cpp b/src/dabInputZmq.cpp
index 1591939..790a961 100644
--- a/src/dabInputZmq.cpp
+++ b/src/dabInputZmq.cpp
@@ -387,7 +387,7 @@ int DabInputZmqMPEG::readFromSocket(size_t framesize)
}
else if (m_enable_input) {
// copy the input frame blockwise into the frame_buffer
- uint8_t* framedata = new uint8_t[framesize];
+ auto framedata = new uint8_t[framesize];
memcpy(framedata, data, framesize);
m_frame_buffer.push_back(framedata);
}
@@ -467,7 +467,7 @@ int DabInputZmqAAC::readFromSocket(size_t framesize)
for (uint8_t* framestart = data;
framestart < &data[5*framesize];
framestart += framesize) {
- uint8_t* audioframe = new uint8_t[framesize];
+ auto audioframe = new uint8_t[framesize];
memcpy(audioframe, framestart, framesize);
m_frame_buffer.push_back(audioframe);
}