[Ffmpeg-cvslog] r5466 - trunk/libavformat/nuv.c
reimar
subversion
Sun Jun 11 12:09:34 CEST 2006
Author: reimar
Date: Sun Jun 11 12:09:33 2006
New Revision: 5466
Modified:
trunk/libavformat/nuv.c
Log:
read_packet return value must be < 0 when no packet is returned, including EOF.
Modified: trunk/libavformat/nuv.c
==============================================================================
--- trunk/libavformat/nuv.c (original)
+++ trunk/libavformat/nuv.c Sun Jun 11 12:09:33 2006
@@ -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) {
More information about the ffmpeg-cvslog
mailing list