mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 23:26:54 +08:00
add H265 decoder and encoder (#154)
This commit is contained in:
@@ -52,7 +52,7 @@ func main() {
|
||||
|
||||
// called when a RTP packet arrives
|
||||
c.OnPacketRTP = func(ctx *gortsplib.ClientOnPacketRTPCtx) {
|
||||
// decode an LPCM packet from the RTP packet
|
||||
// decode LPCM samples from the RTP packet
|
||||
op, _, err := dec.Decode(ctx.Packet)
|
||||
if err != nil {
|
||||
return
|
||||
|
Reference in New Issue
Block a user