changeset 4811:ef366aa6b7f2 libavformat

Do not fail on zero packets.
author michael
date Fri, 03 Apr 2009 15:32:31 +0000
parents b09008e45b45
children f7bc722a3a36
files flvdec.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flvdec.c	Thu Apr 02 23:53:47 2009 +0000
+++ b/flvdec.c	Fri Apr 03 15:32:31 2009 +0000
@@ -444,7 +444,7 @@
         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