mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2024-12-24 16:22:37 +00:00
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
This commit is contained in:
parent
1f6b1bcb81
commit
a7b286e89c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user