From a526753112f2dfff9a185b0673b30b2b89ef977c Mon Sep 17 00:00:00 2001 From: Muaz Ahmad Date: Tue, 15 Aug 2023 14:27:00 +0500 Subject: [PATCH] Add null parsing --- rtmp/amf/decode.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rtmp/amf/decode.go b/rtmp/amf/decode.go index 1ad64d1..7a524a0 100644 --- a/rtmp/amf/decode.go +++ b/rtmp/amf/decode.go @@ -106,6 +106,8 @@ func read_next(data *[]byte, byte_idx *uint32) (interface{}, error) { next_obj, err = read_string(data, byte_idx) case 3: next_obj, err = read_object(data, byte_idx) + case 5: + return nil, nil default: return nil, errors.New("Unhandled data type") }