Skip to content

Commit

Permalink
fix: cannot read property hdlr of undefined (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaoyuhen authored Apr 15, 2019
1 parent 70558a0 commit 038ec8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/griffith-mp4/src/mp4/mp4Box.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export default class MP4Box {
Box.readType(stream)
Box.readBody(stream)

if (Box.type === 'trak') {
if (Box.type === 'trak' && Box.box.mdia) {
const handlerType = Box.box.mdia.hdlr.handlerType
if (handlerType === 'vide') {
this.box.videoTrak = Box.box
Expand Down

0 comments on commit 038ec8b

Please sign in to comment.