Skip to content

Commit

Permalink
mpegts: add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jul 26, 2023
1 parent efccece commit c785c77
Show file tree
Hide file tree
Showing 2 changed files with 772 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/formats/mpegts/track.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ import (
)

const (
opusIdentifier = uint32('O')<<24 | uint32('p')<<16 | uint32('u')<<8 | uint32('s')
h264Identifier = 'H'<<24 | 'D'<<16 | 'M'<<8 | 'V'
h265Identifier = 'H'<<24 | 'E'<<16 | 'V'<<8 | 'C'
opusIdentifier = 'O'<<24 | 'p'<<16 | 'u'<<8 | 's'
)

func findMPEG4AudioConfig(dem *astits.Demuxer, pid uint16) (*mpeg4audio.Config, error) {
Expand Down
Loading

0 comments on commit c785c77

Please sign in to comment.