[vlc-commits] demux: asf: ignore empty sub-payloads (fix #9990)
Francois Cartegnie
git at videolan.org
Sun Feb 9 17:45:00 CET 2014
vlc/vlc-2.0 | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 26 15:40:33 2013 +0100| [d488c799d1f3137aa6a7e9809ef1ddbb1d7f63ea] | committer: Felix Paul Kühne
demux: asf: ignore empty sub-payloads (fix #9990)
(cherry picked from commit 991b4067600b4bb4d6ee75bae5db31cdcd131921)
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=d488c799d1f3137aa6a7e9809ef1ddbb1d7f63ea
---
modules/demux/asf/asf.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/modules/demux/asf/asf.c b/modules/demux/asf/asf.c
index a0fa4bf..248666f 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -552,7 +552,8 @@ static int DemuxPayload(demux_t *p_demux, struct asf_packet_t *pkt, int i_payloa
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