From 42f7316f09bf2c821bc43923363348223d3db3a0 Mon Sep 17 00:00:00 2001 From: Dan Kortschak Date: Thu, 6 Sep 2018 18:06:45 +0930 Subject: [PATCH] rtmp: ensure we catch invalid methods --- rtmp/rtmp.go | 1 + 1 file changed, 1 insertion(+) diff --git a/rtmp/rtmp.go b/rtmp/rtmp.go index 2f537625..bb823f70 100644 --- a/rtmp/rtmp.go +++ b/rtmp/rtmp.go @@ -1297,6 +1297,7 @@ func C_HandleInvoke(r *C_RTMP, body *byte, nBodySize uint32) (ok bool) { panic("Unsupported method av_playlist_ready") default: + panic(fmt.Sprintf("unknown method: %q", method)) } leave: C_AMF_Reset(&obj)