# HG changeset patch # User michael # Date 1218897991 0 # Node ID d8d0fc55a7b87f7add709f901883051340292b87 # Parent ee001685e4e591f4114ffc06662e6eb7d174d9eb Fix rc_eq mem leak. diff -r ee001685e4e5 -r d8d0fc55a7b8 ffmenc.c --- 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);