Commit e78d0381 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/asfdec: ignore packet_segments

Fixes Ticket1708
Based on patch by Alberto Delmás
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent edf7d15e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment