[bTSstream-devel] [Git][videolan/bitstream][master] SRT: avoid variable shadowing
Christophe Massiot (@cmassiot)
gitlab at videolan.org
Fri Nov 15 15:02:49 UTC 2024
Christophe Massiot pushed to branch master at VideoLAN / bitstream
Commits:
8f98b461 by Rafaël Carré at 2024-11-15T11:47:31+01:00
SRT: avoid variable shadowing
warning: declaration of ‘ext’ shadows a previous local [-Wshadow]
- - - - -
1 changed file:
- haivision/srt.h
Changes:
=====================================
haivision/srt.h
=====================================
@@ -535,16 +535,16 @@ static inline bool srt_check_handshake(const uint8_t *cif, size_t n)
uint16_t ext = srt_get_handshake_extension(cif);
if (v == SRT_HANDSHAKE_VERSION && ext && ext != SRT_MAGIC_CODE) {
- const uint8_t *ext = srt_get_handshake_extension_buf((uint8_t*)cif);
+ const uint8_t *ext_buf = srt_get_handshake_extension_buf((uint8_t*)cif);
while (n) {
if (n < SRT_HANDSHAKE_CIF_EXTENSION_MIN_SIZE)
return false;
n -= SRT_HANDSHAKE_CIF_EXTENSION_MIN_SIZE;
- uint16_t extension_len = 4 * srt_get_handshake_extension_len(ext);
+ uint16_t extension_len = 4 * srt_get_handshake_extension_len(ext_buf);
if (n < extension_len)
return false;
n -= extension_len;
- ext += SRT_HANDSHAKE_CIF_EXTENSION_MIN_SIZE + extension_len;
+ ext_buf += SRT_HANDSHAKE_CIF_EXTENSION_MIN_SIZE + extension_len;
}
}
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/commit/8f98b46179750f4c135dce40fc4da175c5755ef6
--
View it on GitLab: https://code.videolan.org/videolan/bitstream/-/commit/8f98b46179750f4c135dce40fc4da175c5755ef6
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the biTStream-devel
mailing list