Bug 1727133 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

[`DecryptCBCS`](https://searchfox.org/mozilla-central/rev/69e4ba3cbce75872d3e88ab0422fbb0198d7000d/media/gmp-clearkey/0.1/ClearKeyUtils.cpp#103) doesn't work with a 0:0 pattern. It will get stuck in a hot loop because [the processing code](https://searchfox.org/mozilla-central/rev/69e4ba3cbce75872d3e88ab0422fbb0198d7000d/media/gmp-clearkey/0.1/ClearKeyUtils.cpp#142-158) assumes that we will process at least 1 block of data.

I think that a 0:0 pattern is unintuitive, but it's the convention for full encryption (which means all audio will use it). So let's not fail when we run into it.
[`DecryptCbcs`](https://searchfox.org/mozilla-central/rev/69e4ba3cbce75872d3e88ab0422fbb0198d7000d/media/gmp-clearkey/0.1/ClearKeyUtils.cpp#103) doesn't work with a 0:0 pattern. It will get stuck in a hot loop because [the processing code](https://searchfox.org/mozilla-central/rev/69e4ba3cbce75872d3e88ab0422fbb0198d7000d/media/gmp-clearkey/0.1/ClearKeyUtils.cpp#142-158) assumes that we will process at least 1 block of data.

I think that a 0:0 pattern is unintuitive, but it's the convention for full encryption (which means all audio will use it). So let's not fail when we run into it.

Back to Bug 1727133 Comment 0