Skip to content

Commit

Permalink
add default isoHandlerBox name
Browse files Browse the repository at this point in the history
  • Loading branch information
subframe7536 committed Mar 8, 2024
1 parent be1083e commit 0418881
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mpeg4/boxes/isoHandlerBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class IsoHandlerBox extends FullBox {
* @param handlerType A {@link ByteVector} object specifying a 4 byte handler type.
* @param name An object specifying the handler name.
*/
public static fromHandlerTypeAndHandlerName(handlerType: ByteVector, name: string): IsoHandlerBox {
public static fromHandlerTypeAndHandlerName(handlerType: ByteVector, name: string = ""): IsoHandlerBox {
Guards.truthy(handlerType, "handlerType");
if (handlerType.length < 4) {
throw new Error("The handler type must be four bytes long.");
Expand Down
2 changes: 1 addition & 1 deletion src/mpeg4/boxes/isoUserDataBox.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class IsoUserDataBox extends Mpeg4Box {
* Gets the box headers for the current "udta" box and all parent boxes up to the top of the file.
* @remarks Changes to the returned object will not be honored. Set the property to change it.
*/
public get parentTree(): Mpeg4BoxHeader[] { return this._parentTree.slice(); }
public get parentTree(): Mpeg4BoxHeader[] { return this._parentTree?.slice(); }
/**
* Sets the box headers for the current "udta" box and all parent boxes up to the top of the file.
* @internal
Expand Down

0 comments on commit 0418881

Please sign in to comment.