[vlc-commits] demux: asf: ignore empty sub-payloads (fix #9990)

Francois Cartegnie git at videolan.org
Tue Nov 26 15:41:38 CET 2013


vlc | branch: master | Francois Cartegnie <fcvlcdev at free.fr> | Tue Nov 26 15:40:33 2013 +0100| [991b4067600b4bb4d6ee75bae5db31cdcd131921] | committer: Francois Cartegnie

demux: asf: ignore empty sub-payloads (fix #9990)

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

 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 7e5b935..fa1079c 100644
--- a/modules/demux/asf/asf.c
+++ b/modules/demux/asf/asf.c
@@ -595,7 +595,8 @@ static int DemuxPayload(demux_t *p_demux, struct asf_packet_t *pkt, int i_payloa
 
         SkipBytes( p_demux->s, 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