From: bcoudurier Date: Sat, 21 Mar 2009 10:32:43 +0000 (+0000) Subject: check if feed max file size is too small X-Git-Url: https://rtime.felk.cvut.cz/gitweb/frescor/ffmpeg.git/commitdiff_plain/4f15168c09f3b3d29238b335220f689e66292be0 check if feed max file size is too small git-svn-id: file:///var/local/repositories/ffmpeg/trunk@18109 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b --- diff --git a/ffserver.c b/ffserver.c index 8d77b9445..61ecf206d 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, "")) { if (!feed) {