container/mts/mpegts_test.go: using consts where I should be

This commit is contained in:
Saxon 2019-05-08 00:09:42 +09:30
parent bccd7c2762
commit 5e705f793e
1 changed files with 2 additions and 2 deletions

View File

@ -104,9 +104,9 @@ func TestFindPid(t *testing.T) {
// Prepare the stream of packets. // Prepare the stream of packets.
var stream []byte var stream []byte
for i := 0; i < numOfPackets; i++ { for i := 0; i < numOfPackets; i++ {
pid := uint16(0) pid := uint16(stdPid)
if i == targetPacketNum { if i == targetPacketNum {
pid = 1 pid = targetPid
} }
p := Packet{ p := Packet{