stream/mts: %v to %d in fmt.Sprintf usage in error message

This commit is contained in:
Saxon 2019-02-27 17:12:52 +10:30
parent 947f818bc6
commit 1e9fcda47c
1 changed files with 2 additions and 1 deletions

View File

@ -30,6 +30,7 @@ package mts
import (
"errors"
"fmt"
)
// General mpegts packet properties.
@ -182,7 +183,7 @@ func FindPID(d []byte, pid uint16) (pkt []byte, i int, err error) {
return
}
}
return nil, -1, errors.New(fmt.Sprintf("could not find packet with pid: %v",pid))
return nil, -1, errors.New(fmt.Sprintf("could not find packet with pid: %d",pid))
}
// FillPayload takes a channel and fills the packets Payload field until the