From fcb4228c863ec80c9498a6c5e815d79ee9f89a7f Mon Sep 17 00:00:00 2001 From: Baptiste Coudurier Date: Thu, 2 Apr 2009 03:52:19 +0000 Subject: [PATCH] skip empty data packets in flv, fix input.flv Originally committed as revision 18306 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/flvdec.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index 89ece0fa88..a279dbe6f8 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -439,6 +439,10 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) } } + /* skip empty data packets */ + if (!size) + return AVERROR(EAGAIN); + ret= av_get_packet(s->pb, pkt, size); if (ret <= 0) { return AVERROR(EIO);