Commit a5f617e9 authored by Michael Niedermayer's avatar Michael Niedermayer

avformat/asfdec: Print a warning if data is skiped due to less than a frame header being left

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent 4b0a4758
......@@ -1175,6 +1175,9 @@ static int asf_parse_packet(AVFormatContext *s, AVIOContext *pb, AVPacket *pkt)
asf->packet_segments < 1 && asf->packet_time_start == 0) {
int ret = asf->packet_size_left + asf->packet_padsize;
if (asf->packet_size_left && asf->packet_size_left < FRAME_HEADER_SIZE)
av_log(s, AV_LOG_WARNING, "Skip due to FRAME_HEADER_SIZE\n");
assert(ret >= 0);
/* fail safe */
avio_skip(pb, ret);
......
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