Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Commit

Permalink
change codecMathPartial to codecMatchExact
Browse files Browse the repository at this point in the history
  • Loading branch information
cnderrauber committed Apr 21, 2021
1 parent be9490b commit 09dd60d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rtpcodec.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 09dd60d

Please sign in to comment.