[vlc-commits] h264_slice: fix variable shadowing in h264_decode_slice
Jean-Baptiste Kempf
git at videolan.org
Sat Nov 11 11:17:37 CET 2017
vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Sat Nov 11 11:16:51 2017 +0100| [b6b297b962776297ad621386a03c30ba031762a2] | committer: Jean-Baptiste Kempf
h264_slice: fix variable shadowing in h264_decode_slice
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=b6b297b962776297ad621386a03c30ba031762a2
---
modules/packetizer/h264_slice.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/modules/packetizer/h264_slice.c b/modules/packetizer/h264_slice.c
index 574846f52a..964fcafe88 100644
--- a/modules/packetizer/h264_slice.c
+++ b/modules/packetizer/h264_slice.c
@@ -160,7 +160,7 @@ bool h264_decode_slice( const uint8_t *p_buffer, size_t i_buffer,
const unsigned i_num_layers = ( i_slice_type % 5 == 1 ) ? 2 : 1;
for( unsigned j=0; j < i_num_layers; j++ )
{
- for( unsigned i=0; i<=num_ref_idx_l01_active_minus1[j]; i++ )
+ for( unsigned k=0; k<=num_ref_idx_l01_active_minus1[j]; k++ )
{
if( bs_read1( &s ) ) /* luma_weight_l{0,1}_flag */
{
More information about the vlc-commits
mailing list