mirror of
https://github.com/asticode/go-astiav.git
synced 2025-10-06 08:37:06 +08:00
Oops
This commit is contained in:
@@ -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"))
|
||||
|
Reference in New Issue
Block a user