From e64b0aa0c60936feab901553601a30ca759d9ab2 Mon Sep 17 00:00:00 2001 From: hughfenghen Date: Fri, 26 Jan 2024 15:22:10 +0800 Subject: [PATCH] fix: Build ESDS box missing data property #341 --- src/parsing/esds.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/parsing/esds.js b/src/parsing/esds.js index 966a7566..3e767607 100644 --- a/src/parsing/esds.js +++ b/src/parsing/esds.js @@ -1,5 +1,6 @@ -BoxParser.createFullBoxCtor("esds", function(stream) { - var esd_data = stream.readUint8Array(this.size-this.hdr_size); +BoxParser.createFullBoxCtor("esds", function (stream) { + var esd_data = stream.readUint8Array(this.size - this.hdr_size); + this.data = esd_data if (typeof MPEG4DescriptorParser !== "undefined") { var esd_parser = new MPEG4DescriptorParser(); this.esd = esd_parser.parseOneDescriptor(new DataStream(esd_data.buffer, 0, DataStream.BIG_ENDIAN));