avformat/asfdec: ignore packet_segments
authorMichael Niedermayer <michaelni@gmx.at>
Sun, 24 Nov 2013 18:14:49 +0000 (19:14 +0100)
committerMichael Niedermayer <michaelni@gmx.at>
Sun, 24 Nov 2013 19:33:26 +0000 (20:33 +0100)
Fixes Ticket1708
Based on patch by Alberto Delmás

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
libavformat/asfdec.c

index e4df32f..a9b0326 100644 (file)
@@ -1122,8 +1122,7 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
         if (url_feof(pb))
             return AVERROR_EOF;
 
-        if (asf->packet_size_left < FRAME_HEADER_SIZE ||
-            asf->packet_segments < 1) {
+        if (asf->packet_size_left < FRAME_HEADER_SIZE) {
             int ret = asf->packet_size_left + asf->packet_padsize;
 
             assert(ret >= 0);