[vlc-commits] demux: asf: ignore empty sub-payloads (fix #9990)
Francois Cartegnie
git at videolan.org
Sun Feb 9 17:42:45 CET 2014
vlc/vlc-2.1 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 26 15:40:33 2013 +0100| [40d5cdb342e4afde07cb730b7c5e221841a79425] | committer: Jean-Baptiste Kempf
demux: asf: ignore empty sub-payloads (fix #9990)
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.1.git/?a=commit;h=40d5cdb342e4afde07cb730b7c5e221841a79425
---
modules/demux/asf/asf.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index 3acea45..9acb430 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -557,8 +557,8 @@ static int DemuxPayload(demux_t *p_demux, struct asf_packet_t *pkt, int i_payloa
i_sub_payload_data_length = pkt->p_peek[pkt->i_skip++];
stream_Read(p_demux->s, NULL, pkt->i_skip);
-
- if (DemuxSubPayload(p_demux, tk, i_sub_payload_data_length, i_pts,
+ if ( i_sub_payload_data_length &&
+ DemuxSubPayload(p_demux, tk, i_sub_payload_data_length, i_pts,
i_media_object_offset) < 0)
return -1;
More information about the vlc-commits
mailing list