Skip to content

Conversation

@karasusan
Copy link
Collaborator

@karasusan karasusan commented May 27, 2022

Related issue Unity-Technologies/UnityRenderStreaming#626

Fixed a crash during ReplaceTrack method. The cause of the crash was that the decoder was not accepting resolution changes.

The NvDecoder class calls the NvDecoder::ReconfigureDecoder method when it detects a resolution change in the NvDecoder::Decode method. However, the resolution change requires a prior call to the NvDecoder::setReconfigParams method, which must be called before the NvDecoder::Decode method is called. To detect a change in resolution, the resolution information is obtained from the SPS.

karasusan added 2 commits May 27, 2022 12:30
(cherry picked from commit 58500641455e4f7bec3e48380e0fee30e138dfbb)
(cherry picked from commit 2b234ada5b615e23956f7d54258f6eef1ffad4ee)
@karasusan karasusan requested a review from kannan-xiao4 May 27, 2022 03:31
@karasusan karasusan changed the title Fix/replacetrack fix: Fix the crash when calling the ReplaceTrack method using NvCodec May 27, 2022
@karasusan karasusan marked this pull request as ready for review May 27, 2022 05:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants