Potential fix for code scanning alert no. 42: Incorrect conversion between integer types (#4684)

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Benjamin Pracht
2026-07-17 09:56:26 +02:00
committed by GitHub
co-authored by Copilot Autofix powered by AI
parent 2c91395055
commit 14aeeb3c56
+1 -1
View File
@@ -3178,7 +3178,7 @@ func offerAudioPayloadTypes(parsed *sdp.SessionDescription) map[mime.MimeType]we
if len(fields) < 2 {
continue
}
pt, err := strconv.Atoi(fields[0])
pt, err := strconv.ParseUint(fields[0], 10, 8)
if err != nil {
continue
}