vlc | branch: master | Francois Cartegnie <fcvlc...@free.fr> | Mon Nov 10 
22:05:20 2014 +0100| [5657ce1d1475ecfdfcac6063efb5d94eac695b2f] | committer: 
Francois Cartegnie

demux: asf: remove dead code (cid #1251046)

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

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

diff --git a/modules/demux/asf/asfpacket.c b/modules/demux/asf/asfpacket.c
index ca99e5d..b69c8a9 100644
--- a/modules/demux/asf/asfpacket.c
+++ b/modules/demux/asf/asfpacket.c
@@ -201,8 +201,6 @@ static int DemuxPayload(asf_packet_sys_t *p_packetsys, 
asf_packet_t *pkt, int i_
 
     bool b_packet_keyframe = pkt->p_peek[pkt->i_skip] >> 7;
     uint8_t i_stream_number = pkt->p_peek[pkt->i_skip++] & 0x7f;
-    if ( i_stream_number > ASF_MAX_STREAMNUMBER )
-        goto skip;
 
     uint32_t i_media_object_number = 0;
     if (GetValue2b(&i_media_object_number, pkt->p_peek, &pkt->i_skip, 
pkt->left - pkt->i_skip, pkt->property >> 4) < 0)

_______________________________________________
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to