[vlc-commits] demux: asf: check skip on multiple payload
Francois Cartegnie
git at videolan.org
Wed Jan 24 22:40:50 CET 2018
vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 24 22:39:47 2018 +0100| [d9103e808f5daec7b9c63b2af646f3f695681bca] | committer: Francois Cartegnie
demux: asf: check skip on multiple payload
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=d9103e808f5daec7b9c63b2af646f3f695681bca
---
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 03713f38ec..cd1ae0341c 100644
--- a/modules/demux/asf/asfpacket.c
+++ b/modules/demux/asf/asfpacket.c
@@ -328,7 +328,7 @@ static int DemuxPayload(asf_packet_sys_t *p_packetsys, asf_packet_t *pkt, int i_
p_packetsys->pf_updatesendtime( p_packetsys, INT64_C(1000) * pkt->send_time );
uint32_t i_subpayload_count = 0;
- while (i_payload_data_length)
+ while (i_payload_data_length && pkt->i_skip < pkt->left )
{
uint32_t i_sub_payload_data_length = i_payload_data_length;
if( i_replicated_data_length == 1 )
More information about the vlc-commits
mailing list