From 634b927f8209d65443e628a2cdeca3c2684c06ad Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Fri, 3 Apr 2009 15:32:31 +0000 Subject: [PATCH] Do not fail on zero packets. Originally committed as revision 18328 to svn://svn.ffmpeg.org/ffmpeg/trunk --- libavformat/flvdec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index a279dbe6f8..7ec577390a 100644 --- a/libavformat/flvdec.c +++ b/libavformat/flvdec.c @@ -444,7 +444,7 @@ static int flv_read_packet(AVFormatContext *s, AVPacket *pkt) return AVERROR(EAGAIN); ret= av_get_packet(s->pb, pkt, size); - if (ret <= 0) { + if (ret < 0) { return AVERROR(EIO); } /* note: we need to modify the packet size here to handle the last