summaryrefslogtreecommitdiff
path: root/libavcodec/imgresample.c
diff options
context:
space:
mode:
authorFabrice Bellard <fabrice@bellard.org>2002-05-18 23:03:29 +0000
committerFabrice Bellard <fabrice@bellard.org>2002-05-18 23:03:29 +0000
commit6000abfa89295801abb8525e6fe7e13dbcc36610 (patch)
tree3ebb212898b99c09eb1dd3a1714cc5c8f617bff3 /libavcodec/imgresample.c
parent4cc281d9d970b0b004f20ee76cae427f374bd082 (diff)
removed useless header includes - use av memory functions
Originally committed as revision 522 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/imgresample.c')
-rw-r--r--libavcodec/imgresample.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/libavcodec/imgresample.c b/libavcodec/imgresample.c
index 8c69de2de1..9cf3b26375 100644
--- a/libavcodec/imgresample.c
+++ b/libavcodec/imgresample.c
@@ -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 "dsputil.h"
#include "avcodec.h"
+#include "dsputil.h"
#ifdef USE_FASTMEMCPY
#include "fastmemcpy.h"
@@ -454,7 +450,7 @@ ImgReSampleContext *img_resample_init(int owidth, int oheight,
return s;
fail:
- free(s);
+ av_free(s);
return NULL;
}
@@ -474,8 +470,8 @@ void img_resample(ImgReSampleContext *s,
void img_resample_close(ImgReSampleContext *s)
{
- free(s->line_buf);
- free(s);
+ av_free(s->line_buf);
+ av_free(s);
}
#ifdef TEST