Skip to content

Commit

Permalink
Correct avc_au format variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
wader committed Sep 12, 2021
1 parent 1bd34bf commit 565f18d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions format/mpeg/avc_au.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ import (
"fq/pkg/decode"
)

var avcAUNALFormat []*decode.Format
var avcNALUFormat []*decode.Format

func init() {
registry.MustRegister(&decode.Format{
Name: format.AVC_AU,
Description: "H.264/AVC Access Unit",
DecodeFn: avcAUDecode,
Dependencies: []decode.Dependency{
{Names: []string{format.AVC_NALU}, Formats: &avcAUNALFormat},
{Names: []string{format.AVC_NALU}, Formats: &avcNALUFormat},
},
})
}
Expand All @@ -31,7 +31,7 @@ func avcAUDecode(d *decode.D, in interface{}) interface{} {
for d.NotEnd() {
d.FieldStructFn("nalu", func(d *decode.D) {
l := d.FieldU("length", int(avcIn.LengthSize)*8)
d.FieldDecodeLen("nalu", int64(l)*8, avcAUNALFormat)
d.FieldDecodeLen("nalu", int64(l)*8, avcNALUFormat)
})
}
})
Expand Down

0 comments on commit 565f18d

Please sign in to comment.