diff options
author | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-03-21 10:32:43 +0000 |
---|---|---|
committer | Baptiste Coudurier <baptiste.coudurier@gmail.com> | 2009-03-21 10:32:43 +0000 |
commit | 64159a588b505d879c57078d223d8e617a36ff04 (patch) | |
tree | fe3046a88323e4133bcd355c13ddfa308c4750cd /ffserver.c | |
parent | 1f611549e2c2e6d485df93e4dd5a982104c110f3 (diff) | |
download | ffmpeg-64159a588b505d879c57078d223d8e617a36ff04.tar.gz |
check if feed max file size is too small
Originally committed as revision 18109 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'ffserver.c')
-rw-r--r-- | ffserver.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/ffserver.c b/ffserver.c index 8d77b94453..61ecf206d4 100644 --- a/ffserver.c +++ b/ffserver.c @@ -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) { |