Browse code

ffserver_config: drop requirement video size being multiple of 16

Such strong requirement constraint doesn't allow to use 360p.
Changed to warning when video size is not being multiple of 2.

Signed-off-by: Lukasz Marek <lukasz.m.luki2@gmail.com>

Lukasz Marek authored on 2014/11/01 11:00:52
Showing 1 changed files
... ...
@@ -895,8 +895,8 @@ static int ffserver_parse_config_stream(FFServerConfig *config, const char *cmd,
895 895
         ret = av_parse_video_size(&w, &h, arg);
896 896
         if (ret < 0)
897 897
             ERROR("Invalid video size '%s'\n", arg);
898
-        else if ((w % 16) || (h % 16))
899
-            ERROR("Image size must be a multiple of 16\n");
898
+        else if ((w % 2) || (h % 2))
899
+            WARNING("Image size is not a multiple of 2\n");
900 900
         if (av_dict_set_int(&config->video_conf, "VideoSizeWidth", w, 0) < 0 ||
901 901
             av_dict_set_int(&config->video_conf, "VideoSizeHeight", h, 0) < 0)
902 902
             goto nomem;