aboutsummaryrefslogtreecommitdiffstats
path: root/ffserver.c
diff options
context:
space:
mode:
authorBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-03-21 10:32:43 +0000
committerBaptiste Coudurier <baptiste.coudurier@gmail.com>2009-03-21 10:32:43 +0000
commit64159a588b505d879c57078d223d8e617a36ff04 (patch)
treefe3046a88323e4133bcd355c13ddfa308c4750cd /ffserver.c
parent1f611549e2c2e6d485df93e4dd5a982104c110f3 (diff)
downloadffmpeg-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.c5
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) {