diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-11-24 19:14:49 +0100 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-11-24 20:33:26 +0100 |
commit | e78d0381874f8449274b261c012f4964f7ede652 (patch) | |
tree | c426fcd3269df7c4d811956e561d3bc61963fa19 /libavformat/asfdec.c | |
parent | edf7d15eb04ff7eb466bc5ff61e0b848b4be402d (diff) | |
download | ffmpeg-e78d0381874f8449274b261c012f4964f7ede652.tar.gz |
avformat/asfdec: ignore packet_segments
Fixes Ticket1708
Based on patch by Alberto Delmás
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r-- | libavformat/asfdec.c | 3 |
1 files changed, 1 insertions, 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); |