summaryrefslogtreecommitdiff
path: root/libavformat/nuv.c
diff options
context:
space:
mode:
authorReimar Döffinger <Reimar.Doeffinger@gmx.de>2006-06-11 10:09:33 +0000
committerReimar Döffinger <Reimar.Doeffinger@gmx.de>2006-06-11 10:09:33 +0000
commita7b286e89c0e0409b2346d2d7761dd6025acfa59 (patch)
tree3288c9a0ac2bd865f7d28f1bc6c2b38588857ebd /libavformat/nuv.c
parent1f6b1bcb8139ffc66a8eb8c8cc60c555028dd625 (diff)
read_packet return value must be < 0 when no packet is returned, including EOF.
Originally committed as revision 5466 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat/nuv.c')
-rw-r--r--libavformat/nuv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/nuv.c b/libavformat/nuv.c
index e707854ef3..5cb1a3c88c 100644
--- a/libavformat/nuv.c
+++ b/libavformat/nuv.c
@@ -186,7 +186,7 @@ static int nuv_packet(AVFormatContext *s, AVPacket *pkt) {
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) {