changeset 1109:725b291bf94f libavformat

read_packet return value must be < 0 when no packet is returned, including EOF.
author reimar
date Sun, 11 Jun 2006 10:09:33 +0000
parents 5dbdfa87d0d8
children a188feae9a07
files nuv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/nuv.c	Sat Jun 10 12:30:51 2006 +0000
+++ b/nuv.c	Sun Jun 11 10:09:33 2006 +0000
@@ -186,7 +186,7 @@
     while (!url_feof(pb)) {
         ret = get_buffer(pb, hdr, HDRSIZE);
         if (ret <= 0)
-            return ret;
+            return ret ? ret : -1;
         frametype = hdr[0];
         size = PKTSIZE(LE_32(&hdr[8]));
         switch (frametype) {