Commit 4f15168c authored by bcoudurier's avatar bcoudurier

check if feed max file size is too small

git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18109 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent 8cc46292
......@@ -3987,6 +3987,11 @@ static int parse_ffconfig(const char *filename)
break;
}
feed->feed_max_size = (int64_t)fsize;
if (feed->feed_max_size < FFM_PACKET_SIZE*4) {
fprintf(stderr, "%s:%d: Feed max file size is too small, "
"must be at least %d\n", filename, line_num, FFM_PACKET_SIZE*4);
errors++;
}
}
} else if (!strcasecmp(cmd, "</Feed>")) {
if (!feed) {
......
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