Skip to content

Conversation

@orgads
Copy link
Contributor

@orgads orgads commented Dec 14, 2025

They are identical.

@orgads
Copy link
Contributor Author

orgads commented Dec 14, 2025

There is so much code duplication in SRTP logic! I'm working on reducing it. This is just the first step.

@orgads
Copy link
Contributor Author

orgads commented Dec 15, 2025

@jeannotlanglois Please review.

@jeannotlanglois
Copy link
Contributor

jeannotlanglois commented Dec 21, 2025

There is so much code duplication in SRTP logic! I'm working on reducing it. This is just the first step.

Correct - in 2016+2017 when I was doing the implementation I initially thought that differences could exist between AUDIO and VIDEO media parameters.

But now after several years having seen many practical uses of various kinds of scenarios I can confirm that this is not the case.

In 2016 I was really working on getting something basic working and because of all the extensive testing I kept the AUDIO and VIDEO parameters separate to make sure I wouldn't be mixing between any of the two when debugging. I really was planning to do a few PRs of refactoring in 2022-2024 but it didn't happen due to some employment changes that affected my schedule.

After reviewing your code carefully I am ok with your changes.
I can clearly see that you've correctly kept all the separate AUDIO/VIDEO instances of the parameters ( as they should be ) and simply removed the duplicated structures which were 100% identical.

This is good/safe as far as I can tell, so I don't see the need for any retesting.

Approved... AFAIK this could be merged.

As a note: I would suggest making a new SIPP 3.7.6 bugfix release soon (with this patch merged to master) so that the issue seen recently with unterminated arrays can be made publicly available ( as I believe those have not been picked up in a new release yet ). Specially since testing indicates that SRTPCHECK is in a healthy state now.

I'll return in January after my holiday break. Looks like I might only be available a few hours one day every week or two for a while in 2026.

Thanks for taking your time to slowly help cleanup duplication, as I wish I would have been able to do it myself. Going slowly and steady with retesting is the key.

Happy Holidays!

@orgads orgads merged commit 5c4e8dc into master Dec 22, 2025
14 checks passed
@orgads orgads deleted the srtp-consolidate branch December 22, 2025 05:00
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