Closed danstiner closed 3 years ago
Followed up, after the get function returns and the Keyframe struct is copied, the packet vector is size zero and we just skip streams with no packets, which is pretty reasonable. Adding a functional test of receiving a keyframe seems like the right approach instead.
Regression from #122
std::transform simply uses
++
to increment where it's inserting, I think the issue was the vector iterator does not grow the vector as packets were being inserted, resulting in corrupted memory.https://en.cppreference.com/w/cpp/algorithm/transform
Verified I now see thumbnails locally which is neat.
Will also follow up on why no errors were getting logged for this, the reporting thread should have been choking.