This commit is contained in:
Quentin Renard
2022-03-26 11:47:14 +01:00
parent abf92ffc35
commit df5bbff0e3
3 changed files with 11 additions and 2 deletions

View File

@@ -74,6 +74,11 @@ func main() {
// Create stream
s := &stream{inputStream: is}
if sd := is.SideData(astiav.PacketSideDataTypeDisplaymatrix); len(sd) > 0 {
m, _ := astiav.NewDisplayMatrixFromBytes(sd)
log.Fatalf("rotation: %v | sd: %+v", m.Rotation(), sd)
}
// Find decoder
if s.decCodec = astiav.FindDecoder(is.CodecParameters().CodecID()); s.decCodec == nil {
log.Fatal(errors.New("main: codec is nil"))