2 parents 50250cc + dfd5581 commit 2cd92a8Copy full SHA for 2cd92a8
1 file changed
src/compat/eme/get_init_data.ts
@@ -155,6 +155,11 @@ export default function getInitData(
155
return null;
156
}
157
158
+ if (initData.byteLength === 0) {
159
+ log.warn("DRM", "Init data is empty on media encrypted event.");
160
+ return null;
161
+ }
162
+
163
const initDataBytes = new Uint8Array(initData);
164
const values = getInitializationDataValues(initDataBytes);
165
return { type: initDataType, values, forceSessionRecreation };
0 commit comments