From e78d0381874f8449274b261c012f4964f7ede652 Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Sun, 24 Nov 2013 19:14:49 +0100 Subject: [PATCH] avformat/asfdec: ignore packet_segments MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes Ticket1708 Based on patch by Alberto Delmás Signed-off-by: Michael Niedermayer --- libavformat/asfdec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index e4df32f4b5..a9b032682d 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -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); -- 2.11.0