[vlc-commits] demux: libmp4: clear variable shadowing

Francois Cartegnie git at videolan.org
Tue Nov 28 15:33:06 CET 2017


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 28 15:32:18 2017 +0100| [fb643da760c39b9542e5dfad3a28dae0b1f6aecc] | committer: Francois Cartegnie

demux: libmp4: clear variable shadowing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fb643da760c39b9542e5dfad3a28dae0b1f6aecc
---

 modules/demux/mp4/libmp4.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/demux/mp4/libmp4.c b/modules/demux/mp4/libmp4.c
index e85599a42c..e811af20ec 100644
--- a/modules/demux/mp4/libmp4.c
+++ b/modules/demux/mp4/libmp4.c
@@ -4926,8 +4926,10 @@ MP4_Box_t *MP4_BoxGetRoot( stream_t *p_stream )
         p_vroot->i_size = i_size;
 
     /* First get the moov */
-    const uint32_t stoplist[] = { ATOM_moov, ATOM_mdat, 0 };
-    i_result = MP4_ReadBoxContainerChildren( p_stream, p_vroot, stoplist );
+    {
+        const uint32_t stoplist[] = { ATOM_moov, ATOM_mdat, 0 };
+        i_result = MP4_ReadBoxContainerChildren( p_stream, p_vroot, stoplist );
+    }
 
     /* mdat appeared first */
     if( i_result && !MP4_BoxGet( p_vroot, "moov" ) )



More information about the vlc-commits mailing list