[vlc-commits] demux: avi: replace macro with an actual variable

Filip Roséen git at videolan.org
Tue Jul 17 16:52:01 CEST 2018


vlc | branch: master | Filip Roséen <filip at atch.se> | Mon Jul 16 13:33:54 2018 +0200| [be067ebc809d61355789b70c2b3a348d9eff1146] | committer: Steve Lhomme

demux: avi: replace macro with an actual variable

Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>

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

 modules/demux/avi/avi.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/modules/demux/avi/avi.c b/modules/demux/avi/avi.c
index fbc29ccad6..dcb94dbd47 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1412,8 +1412,6 @@ static int Demux_UnSeekable( demux_t *p_demux )
 
     for( i_packet = 0; i_packet < 10; i_packet++)
     {
-#define p_stream    p_sys->track[avi_pk.i_stream]
-
         avi_packet_t    avi_pk;
 
         if( AVI_PacketGetHeader( p_demux, &avi_pk ) )
@@ -1453,6 +1451,7 @@ static int Demux_UnSeekable( demux_t *p_demux )
         }
         else
         {
+            avi_track_t *p_stream = p_sys->track[avi_pk.i_stream];
             /* check for time */
             if( p_stream == p_stream_master ||
                 llabs( AVI_GetPTS( p_stream ) -
@@ -1505,7 +1504,6 @@ static int Demux_UnSeekable( demux_t *p_demux )
             }
 
         }
-#undef p_stream
     }
 
     return VLC_DEMUXER_SUCCESS;



More information about the vlc-commits mailing list