mirror of https://bitbucket.org/ausocean/av.git
mts: updated reference to old pid vars
This commit is contained in:
parent
34fc64383e
commit
d23f40c85d
|
@ -197,7 +197,7 @@ func TestEncodePcm(t *testing.T) {
|
|||
for i+PacketSize <= len(clip) {
|
||||
|
||||
// Check MTS packet
|
||||
if !(pkt.PID() == audioPid) {
|
||||
if !(pkt.PID() == AudioPid) {
|
||||
i += PacketSize
|
||||
if i+PacketSize <= len(clip) {
|
||||
copy(pkt[:], clip[i:i+PacketSize])
|
||||
|
|
|
@ -79,7 +79,7 @@ func TestGetPTSRange(t *testing.T) {
|
|||
curTime += interval
|
||||
}
|
||||
|
||||
got, err := GetPTSRange(clip.Bytes(), videoPid)
|
||||
got, err := GetPTSRange(clip.Bytes(), VideoPid)
|
||||
if err != nil {
|
||||
t.Fatalf("did not expect error getting PTS range: %v", err)
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ func writeFrame(b *bytes.Buffer, frame []byte, pts uint64) error {
|
|||
for len(buf) != 0 {
|
||||
pkt := Packet{
|
||||
PUSI: pusi,
|
||||
PID: videoPid,
|
||||
PID: VideoPid,
|
||||
RAI: pusi,
|
||||
CC: 0,
|
||||
AFC: hasAdaptationField | hasPayload,
|
||||
|
|
Loading…
Reference in New Issue