[vlc-commits] demux: asf: clear shadowed var warning

Francois Cartegnie git at videolan.org
Wed Jan 24 16:28:29 CET 2018


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 24 13:31:27 2018 +0100| [9c661e46bacd011ba5f50bb33ee795a6651a42a5] | committer: Francois Cartegnie

demux: asf: clear shadowed var warning

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

 modules/demux/asf/asfpacket.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/modules/demux/asf/asfpacket.c b/modules/demux/asf/asfpacket.c
index a3995d0621..9808ac4bdb 100644
--- a/modules/demux/asf/asfpacket.c
+++ b/modules/demux/asf/asfpacket.c
@@ -524,7 +524,7 @@ int DemuxASFPacket( asf_packet_sys_t *p_packetsys,
             msg_Warn( p_demux, "Read %"PRIu32" too much bytes in the packet",
                             pkt.padding_length - pkt.left );
 #endif
-        int i_return = vlc_stream_Read( p_demux->s, NULL, pkt.left );
+        i_return = vlc_stream_Read( p_demux->s, NULL, pkt.left );
         if( i_return < 0 || (unsigned int) i_return < pkt.left )
         {
             msg_Err( p_demux, "cannot skip data, EOF ?" );



More information about the vlc-commits mailing list