add SyncSample for h264 track

This commit is contained in:
nareix 2016-04-01 18:00:49 +08:00
parent 7d11ff6303
commit 941cd2a168

View File

@ -105,6 +105,7 @@ func (self *Muxer) AddH264Track() (track *Track) {
ColorTableId: -1,
Conf: &atom.Avc1Conf{},
}
track.sample.SyncSample = &atom.SyncSample{}
track.TrackAtom.Media.Handler = &atom.HandlerRefer{
SubType: "vide",
Name: "Video Media Handler",