Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mpc-hc/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Niedermayer <michaelni@gmx.at>2013-08-13 17:17:58 +0400
committerMichael Niedermayer <michaelni@gmx.at>2013-08-13 17:24:30 +0400
commite85771f26814ae192f511a1b01b17ae0d62d62ab (patch)
tree38461f696c97bc3cd5caa754a49ec3eb269409df /ffserver.c
parentef36ba5e088ea9660bcb03722dc7d5a29b20d352 (diff)
ffserver: allocate rc_eq, prevent freeing invalid pointer
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'ffserver.c')
-rw-r--r--ffserver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ffserver.c b/ffserver.c
index cfa730a81a..4215265b84 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)