Mercurial > libavformat.hg
changeset 3731:d8d0fc55a7b8 libavformat
Fix rc_eq mem leak.
author | michael |
---|---|
date | Sat, 16 Aug 2008 14:46:31 +0000 |
parents | ee001685e4e5 |
children | 7b229bc319c7 |
files | ffmenc.c |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ffmenc.c Fri Aug 15 19:24:55 2008 +0000 +++ b/ffmenc.c Sat Aug 16 14:46:31 2008 +0000 @@ -132,7 +132,7 @@ 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);