From a7b286e89c0e0409b2346d2d7761dd6025acfa59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reimar=20D=C3=B6ffinger?= Date: Sun, 11 Jun 2006 10:09:33 +0000 Subject: [PATCH] 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 --- libavformat/nuv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {