mirror of https://bitbucket.org/ausocean/av.git
codec/h264: renamed Lex to LexFromBytestream
This commit is contained in:
parent
f52acc7efb
commit
819b4a122f
|
@ -42,11 +42,11 @@ func init() {
|
|||
|
||||
var h264Prefix = [...]byte{0x00, 0x00, 0x01, 0x09, 0xf0}
|
||||
|
||||
// Lex lexes H.264 NAL units read from src into separate writes to dst with
|
||||
// successive writes being performed not earlier than the specified delay.
|
||||
// NAL units are split after type 1 (Coded slice of a non-IDR picture), 5
|
||||
// LexFromBytestream lexes H.264 NAL units read from src into separate writes
|
||||
// to dst with successive writes being performed not earlier than the specified
|
||||
// delay. NAL units are split after type 1 (Coded slice of a non-IDR picture), 5
|
||||
// (Coded slice of a IDR picture) and 8 (Picture parameter set).
|
||||
func Lex(dst io.Writer, src io.Reader, delay time.Duration) error {
|
||||
func LexFromBytestream(dst io.Writer, src io.Reader, delay time.Duration) error {
|
||||
var tick <-chan time.Time
|
||||
if delay == 0 {
|
||||
tick = noDelay
|
||||
|
|
Loading…
Reference in New Issue