mirror of
https://github.com/wader/fq.git
synced 2024-11-28 03:02:55 +03:00
23 lines
528 B
Go
23 lines
528 B
Go
package mpeg
|
|
|
|
import (
|
|
"github.com/wader/fq/format"
|
|
"github.com/wader/fq/format/registry"
|
|
"github.com/wader/fq/pkg/decode"
|
|
)
|
|
|
|
var annexBAVCNALUFormat []*decode.Format
|
|
|
|
func init() {
|
|
registry.MustRegister(&decode.Format{
|
|
Name: format.AVC_ANNEXB,
|
|
Description: "H.264/AVC Annex B",
|
|
DecodeFn: func(d *decode.D, in interface{}) interface{} {
|
|
return annexBDecode(d, in, annexBAVCNALUFormat)
|
|
},
|
|
Dependencies: []decode.Dependency{
|
|
{Names: []string{format.AVC_NALU}, Formats: &annexBAVCNALUFormat},
|
|
},
|
|
})
|
|
}
|