mirror of https://bitbucket.org/ausocean/av.git
codec/h264/h264dec: fixed some bugs found by testing
This commit is contained in:
parent
401f75a712
commit
2473b9ee0a
|
@ -54,7 +54,7 @@ func NewPPS(br *bits.BitReader, chromaFormat int) (*PPS, error) {
|
|||
|
||||
if pps.SliceGroupMapType == 0 {
|
||||
for iGroup := 0; iGroup <= pps.NumSliceGroupsMinus1; iGroup++ {
|
||||
pps.RunLengthMinus1[iGroup] = int(r.readUe())
|
||||
pps.RunLengthMinus1 = append(pps.RunLengthMinus1, int(r.readUe()))
|
||||
}
|
||||
} else if pps.SliceGroupMapType == 2 {
|
||||
for iGroup := 0; iGroup < pps.NumSliceGroupsMinus1; iGroup++ {
|
||||
|
@ -115,8 +115,8 @@ func NewPPS(br *bits.BitReader, chromaFormat int) (*PPS, error) {
|
|||
}
|
||||
}
|
||||
}
|
||||
pps.SecondChromaQpIndexOffset = r.readSe()
|
||||
}
|
||||
pps.SecondChromaQpIndexOffset = r.readSe()
|
||||
moreRBSPData(br)
|
||||
// rbspTrailingBits()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue