[vlc-commits] demux: asf: check skip on multiple payload
Francois Cartegnie
git at videolan.org
Wed Jan 24 22:58:02 CET 2018
vlc/vlc-3.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Wed Jan 24 22:39:47 2018 +0100| [784646eb2ba063b4dbe8b8d0b58e1f580dc93892] | committer: Francois Cartegnie
demux: asf: check skip on multiple payload
(cherry picked from commit d9103e808f5daec7b9c63b2af646f3f695681bca)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=784646eb2ba063b4dbe8b8d0b58e1f580dc93892
---
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