summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2015-06-28 23:09:53 +0200
committerMichael Niedermayer <[email protected]>2015-06-28 23:22:31 +0200
commita5f617e9ec8e4ea4bb3d8c78a61eb921f50d881b (patch)
treea4f6d3770a22c55841bb606ea06fd7eee936a491
parent4b0a475846a15c9950ff6f83aa5d945318191752 (diff)
avformat/asfdec: Print a warning if data is skiped due to less than a frame header being left
Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavformat/asfdec.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index a9c92b5d0a..b27598227e 100644
--- a/libavformat/asfdec.c
+++ b/libavformat/asfdec.c
@@ -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);