mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-11-26 19:01:44 +02:00
check if feed max file size is too small
Originally committed as revision 18109 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
1f611549e2
commit
64159a588b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user