Skip to content

Commit

Permalink
Add support AAC MPEG-2 for magic source
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexxIT committed May 5, 2024
1 parent 06d8503 commit 8ac834b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/magic/producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ func Open(r io.Reader) (core.Producer, error) {
case bytes.HasPrefix(b, []byte(flv.Signature)):
return flv.Open(rd)

case bytes.HasPrefix(b, []byte{0xFF, 0xF1}):
return aac.Open(rd)

case bytes.HasPrefix(b, []byte("--")):
return multipart.Open(rd)

case b[0] == 0xFF && b[1]&0xF7 == 0xF1:
return aac.Open(rd)

case b[0] == mpegts.SyncByte:
return mpegts.Open(rd)
}
Expand Down

0 comments on commit 8ac834b

Please sign in to comment.