diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:03:29 +0000 |
---|---|---|
committer | Fabrice Bellard <fabrice@bellard.org> | 2002-05-18 23:03:29 +0000 |
commit | 6000abfa89295801abb8525e6fe7e13dbcc36610 (patch) | |
tree | 3ebb212898b99c09eb1dd3a1714cc5c8f617bff3 /libavcodec/ratecontrol.c | |
parent | 4cc281d9d970b0b004f20ee76cae427f374bd082 (diff) | |
download | ffmpeg-6000abfa89295801abb8525e6fe7e13dbcc36610.tar.gz |
removed useless header includes - use av memory functions
Originally committed as revision 522 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/ratecontrol.c')
-rw-r--r-- | libavcodec/ratecontrol.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/ratecontrol.c b/libavcodec/ratecontrol.c index d997dcca15..59dd654dd1 100644 --- a/libavcodec/ratecontrol.c +++ b/libavcodec/ratecontrol.c @@ -106,10 +106,10 @@ void ff_rate_control_uninit(MpegEncContext *s) RateControlContext *rcc= &s->rc_context; emms_c(); - if(rcc->stats_file) fclose(rcc->stats_file); - if(rcc->entry) free(rcc->entry); - rcc->stats_file= NULL; - rcc->entry= NULL; + if(rcc->stats_file) + fclose(rcc->stats_file); + rcc->stats_file = NULL; + av_freep(&rcc->entry); } //---------------------------------- |