diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2009-04-03 15:32:31 +0000 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2009-04-03 15:32:31 +0000 |
commit | 634b927f8209d65443e628a2cdeca3c2684c06ad (patch) | |
tree | 393683994b650f5f4fce576f641cc5580660f59e /libavformat/flvdec.c | |
parent | 0be9e73e3807edfc63bccb7645a99beab4d00c9b (diff) | |
download | ffmpeg-streaming-634b927f8209d65443e628a2cdeca3c2684c06ad.zip ffmpeg-streaming-634b927f8209d65443e628a2cdeca3c2684c06ad.tar.gz |
Do not fail on zero packets.
Originally committed as revision 18328 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r-- | libavformat/flvdec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/flvdec.c b/libavformat/flvdec.c index a279dbe..7ec5773 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 |