author | Michael Niedermayer <michaelni@gmx.at> | 2013-08-13 13:17:58 (GMT) |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-08-13 13:24:30 (GMT) |
commit | e85771f26814ae192f511a1b01b17ae0d62d62ab (patch) | |
tree | 38461f696c97bc3cd5caa754a49ec3eb269409df | |
parent | ef36ba5e088ea9660bcb03722dc7d5a29b20d352 (diff) | |
download | ffmpeg-e85771f26814ae192f511a1b01b17ae0d62d62ab.zip ffmpeg-e85771f26814ae192f511a1b01b17ae0d62d62ab.tar.gz ffmpeg-e85771f26814ae192f511a1b01b17ae0d62d62ab.tar.bz2 |
ffserver: allocate rc_eq, prevent freeing invalid pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
-rw-r--r-- | ffserver.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |