mirror of https://bitbucket.org/ausocean/av.git
codec/h264/h264dec/cavlc.go: simplified some logic regarding appending of values onto levelVal based on trailing_ones_sign_flag
This commit is contained in:
parent
960d41cb4f
commit
46e7f9d303
|
@ -56,11 +56,7 @@ func parseLevelInformation(br *bits.BitReader, totalCoeff, trailingOnes int) ([]
|
|||
if err != nil {
|
||||
return nil, fmt.Errorf("could not read trailing_ones_sign_flag, failed with error: %v", err)
|
||||
}
|
||||
if b == 0 {
|
||||
levelVal = append(levelVal, 1)
|
||||
continue
|
||||
}
|
||||
levelVal = append(levelVal, -1)
|
||||
levelVal = append(levelVal, 1-int(b)*2)
|
||||
}
|
||||
|
||||
var suffixLen int
|
||||
|
|
Loading…
Reference in New Issue