[vlc-commits] livehttp: fix variable shadowing
Rémi Denis-Courmont
git at videolan.org
Thu Jun 29 22:35:07 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Jun 29 22:58:39 2017 +0300| [06843091cef4489e703133ed1d8f4a15bec04e49] | committer: Rémi Denis-Courmont
livehttp: fix variable shadowing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=06843091cef4489e703133ed1d8f4a15bec04e49
---
modules/access_output/livehttp.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/access_output/livehttp.c b/modules/access_output/livehttp.c
index 94a5764b98..02ff70e5bd 100644
--- a/modules/access_output/livehttp.c
+++ b/modules/access_output/livehttp.c
@@ -626,12 +626,12 @@ static int updateIndexAndDel( sout_access_out_t *p_access, sout_access_out_sys_t
{
unsigned long long iv_hi = segment->aes_ivs[0];
unsigned long long iv_lo = segment->aes_ivs[8];
- for( unsigned short i = 1; i < 8; i++ )
+ for( unsigned short j = 1; j < 8; j++ )
{
iv_hi <<= 8;
- iv_hi |= segment->aes_ivs[i] & 0xff;
+ iv_hi |= segment->aes_ivs[j] & 0xff;
iv_lo <<= 8;
- iv_lo |= segment->aes_ivs[8+i] & 0xff;
+ iv_lo |= segment->aes_ivs[8+j] & 0xff;
}
ret = fprintf( fp, "#EXT-X-KEY:METHOD=AES-128,URI=\"%s\",IV=0X%16.16llx%16.16llx\n",
segment->psz_key_uri, iv_hi, iv_lo );
More information about the vlc-commits
mailing list