nareix / joy4

Golang audio/video library and streaming server
MIT License
2.66k stars 501 forks source link

packetization-mode = 0 ,好像无法解析 #87

Open DDDHu opened 5 years ago

DDDHu commented 5 years ago

a=control:* b=AS:4106 a=range:clock=20190424T063812Z-20190425T064816Z m=video 0 RTP/AVP 96 i=Video Media a=rtpmap:96 H264/90000 a=fmtp:96 profile-level-id=4D0014;packetization-mode=0

fastfading commented 5 years ago

me too. image

image

report panic panic: runtime error: integer divide by zero

goroutine 1 [running]: github.com/nareix/joy4/format/mp4.(Stream).tsToTime(...) git/gopath/src/github.com/nareix/joy4/format/mp4/stream.go:57 github.com/nareix/joy4/format/mp4.(Demuxer).ReadPacket(0xc00a7d8b40, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x30, 0x11a9fc0) git/gopath/src/github.com/nareix/joy4/format/mp4/demuxer.go:314 +0x24e