[FFmpeg-cvslog] ffserver: allocate rc_eq, prevent freeing invalid pointer
Michael Niedermayer
git at videolan.org
Tue Aug 13 15:29:28 CEST 2013
ffmpeg | branch: master | Michael Niedermayer <michaelni at gmx.at> | Tue Aug 13 15:17:58 2013 +0200| [e85771f26814ae192f511a1b01b17ae0d62d62ab] | committer: Michael Niedermayer
ffserver: allocate rc_eq, prevent freeing invalid pointer
Signed-off-by: Michael Niedermayer <michaelni at gmx.at>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=e85771f26814ae192f511a1b01b17ae0d62d62ab
---
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)
More information about the ffmpeg-cvslog
mailing list