mirror of https://git.ffmpeg.org/ffmpeg.git
avformat/asfdec: ignore packet_segments
Fixes Ticket1708 Based on patch by Alberto Delmás Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
parent
edf7d15eb0
commit
e78d038187
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue