mirror of
https://gitee.com/openharmony/third_party_ffmpeg
synced 2024-11-23 19:30:05 +00:00
ffserver: check for EOF|error at loop condition
Signed-off-by: Reynaldo H. Verdejo Pinochet <reynaldo@osg.samsung.com>
This commit is contained in:
parent
0121ddabb8
commit
a18456a203
@ -1199,9 +1199,7 @@ static FFServerIPAddressACL* parse_dynamic_acl(FFServerStream *stream, HTTPConte
|
||||
acl = av_mallocz(sizeof(FFServerIPAddressACL));
|
||||
|
||||
/* Build ACL */
|
||||
for(;;) {
|
||||
if (fgets(line, sizeof(line), f) == NULL)
|
||||
break;
|
||||
while (fgets(line, sizeof(line), f)) {
|
||||
line_num++;
|
||||
p = line;
|
||||
while (av_isspace(*p))
|
||||
|
Loading…
Reference in New Issue
Block a user