Mercurial > libavcodec.hg
diff ratecontrol.c @ 396:fce0a2520551 libavcodec
removed useless header includes - use av memory functions
author | glantau |
---|---|
date | Sat, 18 May 2002 23:03:29 +0000 |
parents | 83964a31b319 |
children | dd4f4c3d7171 |
line wrap: on
line diff
--- a/ratecontrol.c Sat May 18 23:01:20 2002 +0000 +++ b/ratecontrol.c Sat May 18 23:03:29 2002 +0000 @@ -106,10 +106,10 @@ 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); } //----------------------------------