Unity-Technologies / com.unity.webrtc

WebRTC package for Unity
Other
753 stars 191 forks source link

fix: Fix a runtime error when replacing track with NvCodec #900

Closed karasusan closed 1 year ago

karasusan commented 1 year ago

This PR fixes the crash when replacing video track with NvCodec.

This issue is caused by this change. At a glance, it is only upgrading NvCodec SDK. however, this contained changing order of NvDecoder constructor's argumenets, that's why always m_nMaxHeight is zero. The first time of evaluating this parameter is replacing video track.