[FFmpeg-cvslog] avformat/asfdec: Print a warning if data is skiped due to less than a frame header being left

Michael Niedermayer git at videolan.org
Sun Jun 28 23:23:44 CEST 2015


ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Sun Jun 28 23:09:53 2015 +0200| [a5f617e9ec8e4ea4bb3d8c78a61eb921f50d881b] | committer: Michael Niedermayer

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

Signed-off-by: Michael Niedermayer <michaelni at gmx.at>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=a5f617e9ec8e4ea4bb3d8c78a61eb921f50d881b
---

 libavformat/asfdec.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/libavformat/asfdec.c b/libavformat/asfdec.c
index a9c92b5..b275982 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);



More information about the ffmpeg-cvslog mailing list