[vlc-devel] [PATCH] demux: avi: replace macro with an actual variable
Filip Roséen
filip at atch.se
Mon Jul 16 13:33:54 CEST 2018
---
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 0f4952d6c3..22dab9decf 100644
--- a/modules/demux/avi/avi.c
+++ b/modules/demux/avi/avi.c
@@ -1431,8 +1431,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 ) )
@@ -1472,6 +1470,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 ) -
@@ -1524,7 +1523,6 @@ static int Demux_UnSeekable( demux_t *p_demux )
}
}
-#undef p_stream
}
return VLC_DEMUXER_SUCCESS;
--
2.18.0
More information about the vlc-devel
mailing list