diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2008-08-16 18:46:31 +0400 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2008-08-16 18:46:31 +0400 |
commit | 3cffbe090a5168dcfe580de8d662a32e7ad1d911 (patch) | |
tree | c9272ce929f3ec818e5d686fb5f971d2a6a55021 /libavformat | |
parent | 847d05360baf01c71c89cf9602fbbf5bd481c232 (diff) |
Fix rc_eq mem leak.
Originally committed as revision 14788 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavformat')
-rw-r--r-- | libavformat/ffmenc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavformat/ffmenc.c b/libavformat/ffmenc.c index d6cc8da5ce..80ec872553 100644 --- a/libavformat/ffmenc.c +++ b/libavformat/ffmenc.c @@ -132,7 +132,7 @@ static int ffm_write_header(AVFormatContext *s) put_be16(pb, (int) (codec->qcompress * 10000.0)); put_be16(pb, (int) (codec->qblur * 10000.0)); put_be32(pb, codec->bit_rate_tolerance); - put_strz(pb, codec->rc_eq); + put_strz(pb, codec->rc_eq ? codec->rc_eq : "tex^qComp"); put_be32(pb, codec->rc_max_rate); put_be32(pb, codec->rc_min_rate); put_be32(pb, codec->rc_buffer_size); |