move pkg/mpeg4audio into pkg/codecs/mpeg4audio

This commit is contained in:
aler9
2022-12-27 17:30:53 +01:00
parent 824fd75d18
commit 5f2ac979c5
16 changed files with 12 additions and 11 deletions

View File

@@ -45,12 +45,13 @@ Features:
* Compute and provide SSRC, RTP-Info to clients
* Generate RTCP sender reports
* Utilities
* Parse RTSP elements
* Encode/decode format-specific frames into/from RTP packets. The following formats are supported:
* Video: H264, H265, M-JPEG, VP8, VP9
* Audio: G711 (PCMA, PCMU), G722, LPCM, MPEG4 Audio (AAC), Opus
* Parse RTSP elements: requests, responses, SDP
* Parse H264 elements and formats: Annex-B, AVCC, anti-competition, DTS
* Parse MPEG4 Audio (AAC) element and formats: ADTS, MPEG4 Audio configurations
* Parse codec-specific elements. The following codecs are supported:
* Video: H264, H265, M-JPEG
* Audio: MPEG4 Audio (AAC)
## Table of contents

View File

@@ -17,11 +17,11 @@ import (
"github.com/aler9/gortsplib/v2/pkg/auth"
"github.com/aler9/gortsplib/v2/pkg/base"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/conn"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/headers"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/sdp"
"github.com/aler9/gortsplib/v2/pkg/url"
)

View File

@@ -5,9 +5,9 @@ import (
"net"
"github.com/aler9/gortsplib/v2"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/format"
"github.com/aler9/gortsplib/v2/pkg/media"
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
"github.com/pion/rtp"
)

View File

@@ -6,7 +6,7 @@ import (
psdp "github.com/pion/sdp/v3"
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
)
func TestNewFromMediaDescription(t *testing.T) {

View File

@@ -8,8 +8,8 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/formatdecenc/rtpmpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
)
// MPEG4Audio is a MPEG-4 audio format.

View File

@@ -6,7 +6,7 @@ import (
"github.com/pion/rtp"
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
)
func TestMPEG4AudioAttributes(t *testing.T) {

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/rtptimedec"
)

View File

@@ -8,7 +8,7 @@ import (
"github.com/pion/rtp"
"github.com/stretchr/testify/require"
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
)
func mergeBytes(vals ...[]byte) []byte {

View File

@@ -7,7 +7,7 @@ import (
"github.com/pion/rtp"
"github.com/aler9/gortsplib/v2/pkg/bits"
"github.com/aler9/gortsplib/v2/pkg/mpeg4audio"
"github.com/aler9/gortsplib/v2/pkg/codecs/mpeg4audio"
)
const (