OSDN Git Service

ffserver: allocate rc_eq, prevent freeing invalid pointer
authorMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Aug 2013 13:17:58 +0000 (15:17 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Tue, 13 Aug 2013 13:24:30 +0000 (15:24 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
ffserver.c

index cfa730a..4215265 100644 (file)
@@ -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)