diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2014-07-14 03:16:08 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-07-14 03:16:08 +0400 |
commit | 2db1bcf1b98270835ab27ffea4eb83b0a7c16002 (patch) | |
tree | b4643150bf01668ea951e8c49fe3389fb8d730b1 /libavformat/asfdec.c | |
parent | cc3e7a4c3df9f6de6f4a2f312355dc221d6380f0 (diff) |
avformat/asfdec: Try to improve skip case
Fixes Ticket3761
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavformat/asfdec.c')
-rw-r--r-- | libavformat/asfdec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c index 270ba1d25e..978b9562a1 100644 --- a/libavformat/asfdec.c +++ b/libavformat/asfdec.c @@ -1128,8 +1128,8 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt) int ret; if (url_feof(pb)) return AVERROR_EOF; - - if (asf->packet_size_left < FRAME_HEADER_SIZE) { + if (asf->packet_size_left < FRAME_HEADER_SIZE || + asf->packet_segments < 1 && asf->packet_time_start == 0) { int ret = asf->packet_size_left + asf->packet_padsize; assert(ret >= 0); |