From e85771f26814ae192f511a1b01b17ae0d62d62ab Mon Sep 17 00:00:00 2001 From: Michael Niedermayer Date: Tue, 13 Aug 2013 15:17:58 +0200 Subject: ffserver: allocate rc_eq, prevent freeing invalid pointer Signed-off-by: Michael Niedermayer --- ffserver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ffserver.c b/ffserver.c index cfa730a..4215265 100644 --- a/ffserver.c +++ b/ffserver.c @@ -3904,7 +3904,7 @@ static void add_codec(FFStream *stream, AVCodecContext *av) av->rc_buffer_aggressivity = 1.0; if (!av->rc_eq) - av->rc_eq = "tex^qComp"; + av->rc_eq = av_strdup("tex^qComp"); if (!av->i_quant_factor) av->i_quant_factor = -0.8; if (!av->b_quant_factor) -- cgit v1.1