Commit e85771f2 authored by Michael Niedermayer's avatar Michael Niedermayer

ffserver: allocate rc_eq, prevent freeing invalid pointer

Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ef36ba5e
......@@ -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)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment