Emulation Prevention Bytes are not removed from the bitstream, which can lead to incorrect parsing of the SPS.
The cleanupEmulationPrevention() function read the whole SPS pretty much byte-by-byte looking for EPBs. This is not a great method in terms of performance, but SPS are supposed to be quite short so the impact on performance is negligible.
Emulation Prevention Bytes are not removed from the bitstream, which can lead to incorrect parsing of the SPS.
The cleanupEmulationPrevention() function read the whole SPS pretty much byte-by-byte looking for EPBs. This is not a great method in terms of performance, but SPS are supposed to be quite short so the impact on performance is negligible.