ffserver: remove usage of deprecated rc_eq option
authorJames Almer <jamrial@gmail.com>
Sat, 21 Oct 2017 20:48:01 +0000 (17:48 -0300)
committerJames Almer <jamrial@gmail.com>
Sat, 21 Oct 2017 21:07:54 +0000 (18:07 -0300)
The private codec option will be used instead when available.

fftools/ffserver_config.c

index 54135be..71b5010 100644 (file)
@@ -291,11 +291,9 @@ static void add_codec(FFServerStream *stream, AVCodecContext *av,
         }
 
         if (!av_dict_get(recommended, "rc_eq", NULL, 0)) {
-            av->rc_eq = av_strdup("tex^qComp");
             av_dict_set(&recommended, "rc_eq", "tex^qComp", 0);
             WARNING("Setting default value for video rate control equation = "
-                    "%s. Use NoDefaults to disable it.\n",
-                    av->rc_eq);
+                    "tex^qComp. Use NoDefaults to disable it.\n");
         }
         if (!av_dict_get(recommended, "maxrate", NULL, 0)) {
             av->rc_max_rate = av->bit_rate * 2;