mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
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))
|
if (url_feof(pb))
|
||||||
return AVERROR_EOF;
|
return AVERROR_EOF;
|
||||||
|
|
||||||
if (asf->packet_size_left < FRAME_HEADER_SIZE ||
|
if (asf->packet_size_left < FRAME_HEADER_SIZE) {
|
||||||
asf->packet_segments < 1) {
|
|
||||||
int ret = asf->packet_size_left + asf->packet_padsize;
|
int ret = asf->packet_size_left + asf->packet_padsize;
|
||||||
|
|
||||||
assert(ret >= 0);
|
assert(ret >= 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user