diff --git a/format/mp4/muxer.go b/format/mp4/muxer.go index 32b6869..d0e3578 100644 --- a/format/mp4/muxer.go +++ b/format/mp4/muxer.go @@ -6,6 +6,8 @@ import ( "io" "time" + "github.com/deepch/vdk/codec/h265parser" + "github.com/deepch/vdk/av" "github.com/deepch/vdk/codec/aacparser" "github.com/deepch/vdk/codec/h264parser" @@ -120,7 +122,7 @@ func (self *Stream) fillTrackAtom() (err error) { self.trackAtom.Header.TrackWidth = float64(width) self.trackAtom.Header.TrackHeight = float64(height) } else if self.Type() == av.H265 { - codec := self.CodecData.(h264parser.CodecData) + codec := self.CodecData.(h265parser.CodecData) width, height := codec.Width(), codec.Height() self.sample.SampleDesc.HV1Desc = &mp4io.HV1Desc{ DataRefIdx: 1,