summaryrefslogtreecommitdiffstats
path: root/libavformat
diff options
context:
space:
mode:
Diffstat (limited to 'libavformat')
-rw-r--r--libavformat/swfdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/swfdec.c b/libavformat/swfdec.c
index 8a57a34..8ef24a5 100644
--- a/libavformat/swfdec.c
+++ b/libavformat/swfdec.c
@@ -71,7 +71,7 @@ static int zlib_refill(void *opaque, uint8_t *buf, int buf_size)
retry:
if (!z->avail_in) {
int n = avio_read(s->pb, swf->zbuf_in, ZBUF_SIZE);
- if (n <= 0)
+ if (n < 0)
return n;
z->next_in = swf->zbuf_in;
z->avail_in = n;
OpenPOWER on IntegriCloud