Skip to content

Commit

Permalink
Merge pull request nareix#21 from DigitallyImported/validate-adts-aot
Browse files Browse the repository at this point in the history
ATDS: add AOT validation
  • Loading branch information
nareix authored Nov 3, 2017
2 parents 58973ae + 717b3e0 commit bd41a3b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions format/aac/aac.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ func (self *Muxer) WriteHeader(streams []av.CodecData) (err error) {
return
}
self.config = streams[0].(aacparser.CodecData).Config
if self.config.ObjectType > aacparser.AOT_AAC_LTP {
err = fmt.Errorf("aac: AOT %d is not allowed in ADTS", self.config.ObjectType)
}
return
}

Expand Down

0 comments on commit bd41a3b

Please sign in to comment.