demux: asf: ignore empty sub-payloads (fix #9990)
authorFrancois Cartegnie <fcvlcdev@free.fr>
Tue, 26 Nov 2013 14:40:33 +0000 (15:40 +0100)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 9 Feb 2014 16:44:34 +0000 (17:44 +0100)
(cherry picked from commit 991b4067600b4bb4d6ee75bae5db31cdcd131921)
Signed-off-by: Felix Paul Kühne <fkuehne@videolan.org>
modules/demux/asf/asf.c

index a0fa4bf..248666f 100644 (file)
@@ -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;