mirror of
https://github.com/signalapp/libsignal.git
synced 2026-05-11 09:26:20 +02:00
In particular, some streams seem to override skip() to always return 0, which means that even looping on skip() won't end up skipping the full amount. Work around this by using a wrapper InputStream that falls back to read() instead. This removes a requirement for the streams passed to Mp4Sanitizer and WebpSanitizer, but providing a good skip() is still recommended.