Skip to content

Commit

Permalink
Fixed iso639 descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
asticode committed Jan 5, 2019
1 parent 1629405 commit f4a041f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions descriptor.go
Expand Up @@ -506,10 +506,11 @@ type DescriptorISO639LanguageAndAudioType struct {
Type uint8
}

// In some actual cases, the length is 3 and the language is described in only 2 bytes
func newDescriptorISO639LanguageAndAudioType(i []byte) *DescriptorISO639LanguageAndAudioType {
return &DescriptorISO639LanguageAndAudioType{
Language: i[0:3],
Type: uint8(i[3]),
Language: i[0 : len(i)-1],
Type: uint8(i[len(i)-1]),
}
}

Expand Down
Binary file added doc/en_300468v011501p.pdf
Binary file not shown.

0 comments on commit f4a041f

Please sign in to comment.