Commit a7b286e8 authored by Reimar Döffinger's avatar Reimar Döffinger

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
parent 1f6b1bcb
......@@ -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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment