[vlc-commits] ty: avoid aliasing
Rémi Denis-Courmont
git at videolan.org
Sun Jul 30 21:20:14 CEST 2017
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Jul 30 22:13:53 2017 +0300| [5d542cc0c604506a997640261db7602d6c3cbd40] | committer: Rémi Denis-Courmont
ty: avoid aliasing
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=5d542cc0c604506a997640261db7602d6c3cbd40
---
modules/demux/ty.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/modules/demux/ty.c b/modules/demux/ty.c
index dce11581bb..0273125693 100644
--- a/modules/demux/ty.c
+++ b/modules/demux/ty.c
@@ -1649,15 +1649,15 @@ static void parse_master(demux_t *p_demux)
p_sys->i_seq_table_size = 0;
return;
}
- for (unsigned i=0; i<p_sys->i_seq_table_size; i++) {
+ for (unsigned j=0; j<p_sys->i_seq_table_size; j++) {
vlc_stream_Read(p_demux->s, mst_buf, 8);
- p_sys->seq_table[i].l_timestamp = U64_AT(&mst_buf[0]);
+ p_sys->seq_table[j].l_timestamp = U64_AT(&mst_buf[0]);
if (i_map_size > 8) {
msg_Err(p_demux, "Unsupported SEQ bitmap size in master chunk");
vlc_stream_Read(p_demux->s, NULL, i_map_size);
} else {
vlc_stream_Read(p_demux->s, mst_buf + 8, i_map_size);
- memcpy(p_sys->seq_table[i].chunk_bitmask, &mst_buf[8], i_map_size);
+ memcpy(p_sys->seq_table[j].chunk_bitmask, &mst_buf[8], i_map_size);
}
}
More information about the vlc-commits
mailing list