Skip to content

Commit

Permalink
improvement: removed log for missing sps chroma idc information
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbee committed Dec 31, 2020
1 parent 580b668 commit b8be183
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion avc/sps.go
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ func ParseSPSNALUnit(data []byte, parseVUIBeyondAspectRatio bool) (*SPS, error)
case 3: //This lacks one extra check?
cropUnitX, cropUnitY = 1, 1*(2-frameMbsOnly)
default:
panic("Non-vaild chroma_format_idc value")
return nil, fmt.Errorf("Non-vaild chroma_format_idc value: %d", sps.ChromaFormatIDC)
}

sps.FrameCropLeftOffset, err = reader.ReadExpGolomb()
Expand Down

0 comments on commit b8be183

Please sign in to comment.