Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat/flvdec.c')
-rw-r--r--libavformat/flvdec.c2
1 files changed, 1 insertions, 1 deletions
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