Frame index reset happens as part of the acquire function

This commit is contained in:
2021-07-06 11:25:41 +02:00
parent 2948afcdf2
commit eb18db9446
+1 -2
View File
@@ -59,8 +59,7 @@ int main (int argc, char *argv[]) {
char* data = new char[FRAME_N_BYTES];
while (true) {
// Reset the metadata and frame buffer for the next frame.
meta.frame_index = 0;
// Reset the data buffer.
memset(data, 0, FRAME_N_BYTES);
receiver.get_frame_from_udp(meta, data);