mirror of
https://github.com/shaka-project/shaka-player.git
synced 2026-06-14 15:56:38 +03:00
a054b7e6ad
Use PSSH string to cache init data in order to avoid creating duplicated init data buffers. On streams with many periods due to ad insertion it can make a difference - i.e. on stream with 50 periods this change reduces used memory by init data buffers from 40 KB to 1 KB. In DASH, PSSH can often be a duplicated data between protected periods and/or adaptation sets.