Commit c9a3c16d authored by reimar's avatar reimar

read_packet return value must be < 0 when no packet is returned, including EOF.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@5466 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 76e15844
......@@ -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