From 09dd60d22d53ef9f6a594c0cbcbc9a53f1ddb3a3 Mon Sep 17 00:00:00 2001 From: cnderrauber Date: Wed, 21 Apr 2021 18:19:19 +0800 Subject: [PATCH] change codecMathPartial to codecMatchExact --- rtpcodec.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtpcodec.go b/rtpcodec.go index d566d715cfe..eed81a0cec9 100644 --- a/rtpcodec.go +++ b/rtpcodec.go @@ -114,7 +114,8 @@ func codecParametersFuzzySearch(needle RTPCodecParameters, haystack []RTPCodecPa // remote mime type will prefix with media kind,so check with suffix if strings.EqualFold(c.RTPCodecCapability.MimeType, needle.RTPCodecCapability.MimeType) || strings.HasSuffix(needle.RTPCodecCapability.MimeType, c.RTPCodecCapability.MimeType) { - return c, codecMatchPartial + // return c, codecMatchPartial + return c, codecMatchExact // by zj : h264 partial match will cause h264 codec goto negotiationedcodec last } }