summaryrefslogtreecommitdiff
path: root/danmaku/dmmsg
diff options
context:
space:
mode:
Diffstat (limited to 'danmaku/dmmsg')
-rw-r--r--danmaku/dmmsg/danmu.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/danmaku/dmmsg/danmu.go b/danmaku/dmmsg/danmu.go
index f0229d2..a18a9aa 100644
--- a/danmaku/dmmsg/danmu.go
+++ b/danmaku/dmmsg/danmu.go
@@ -26,8 +26,8 @@ func (dm DanMuMessage) String() string {
const InvalidDanmakuJson = "invalid danmaku JSON document"
func ParseDanmakuMessage(body RawDanMuMessage) (dmm DanMuMessage, err error) {
- if len(body.Info) != 16 {
- err = fmt.Errorf("%s: \"info\" length != 16", InvalidDanmakuJson)
+ if len(body.Info) < 16 {
+ err = fmt.Errorf("%s: \"info\" length < 16", InvalidDanmakuJson)
return
}