diff --git a/examples/README.md b/examples/README.md index e95a074..771fbec 100644 --- a/examples/README.md +++ b/examples/README.md @@ -36,7 +36,7 @@ To demonstrate V3C streaming, uvgRTP comes with example V3C sender and V3C recei 4. Place the test sequence in uvgRTP/build/examples/Release 5. Start the `v3c_receiver` program with `./v3c_receiver uvgRTP_example_sequence_longdress.vpcc`. If you have changed the filename, modify the command accordingly. 6. Start the `v3c_sender` program with `./v3c_sender uvgRTP_example_sequence_longdress.vpcc`. The program will parse the test sequence for transmission and send it to the receiver. -7. The with `v3c_receiver` will print information on the reception and reconstruction of the V3C bitstream. +7. The `v3c_receiver` will print information on the reception and reconstruction of the V3C bitstream. It will also check the received sequence for any differences to the original one. ## RTCP example diff --git a/examples/v3c_receiver.cc b/examples/v3c_receiver.cc index aa19fd2..177dd40 100644 --- a/examples/v3c_receiver.cc +++ b/examples/v3c_receiver.cc @@ -152,7 +152,7 @@ int main(int argc, char* argv[]) if (len == 0) { return EXIT_FAILURE; } - std::cout << "Reading original file for comparison " << len << std::endl; + std::cout << "Reading original file for comparison " << std::endl; char* original_buf = nullptr; original_buf = get_cmem(PATH); @@ -161,6 +161,7 @@ int main(int argc, char* argv[]) for (auto i = 0; i < bytes; ++i) { if (original_buf[i] != out_buf[i]) { diff = true; + std::cout << "Difference found in " << i << std::endl; break; } }