diff --git a/packages/griffith-mp4/src/mp4/mp4Box.js b/packages/griffith-mp4/src/mp4/mp4Box.js index f2f2482f..97871d88 100644 --- a/packages/griffith-mp4/src/mp4/mp4Box.js +++ b/packages/griffith-mp4/src/mp4/mp4Box.js @@ -59,7 +59,7 @@ export default class MP4Box { Box.readType(stream) Box.readBody(stream) - if (Box.type === 'trak' && Box.box.mdia) { + if (Box.type === 'trak' && Box.box.mdia && Box.box.mdia.hdlr) { const handlerType = Box.box.mdia.hdlr.handlerType if (handlerType === 'vide') { this.box.videoTrak = Box.box