Mercurial > libavcodec.hg
diff imgresample.c @ 396:fce0a2520551 libavcodec
removed useless header includes - use av memory functions
author | glantau |
---|---|
date | Sat, 18 May 2002 23:03:29 +0000 |
parents | 1d2077091e88 |
children | 868b9247dc24 |
line wrap: on
line diff
--- a/imgresample.c Sat May 18 23:01:20 2002 +0000 +++ b/imgresample.c Sat May 18 23:03:29 2002 +0000 @@ -16,12 +16,8 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -#include <stdlib.h> -#include <stdio.h> -#include <string.h> -#include <math.h> +#include "avcodec.h" #include "dsputil.h" -#include "avcodec.h" #ifdef USE_FASTMEMCPY #include "fastmemcpy.h" @@ -454,7 +450,7 @@ return s; fail: - free(s); + av_free(s); return NULL; } @@ -474,8 +470,8 @@ void img_resample_close(ImgReSampleContext *s) { - free(s->line_buf); - free(s); + av_free(s->line_buf); + av_free(s); } #ifdef TEST