summaryrefslogtreecommitdiff
path: root/libavcodec
diff options
context:
space:
mode:
authorFrançois Revol <revol@free.fr>2005-02-22 11:37:03 +0000
committerFrançois Revol <revol@free.fr>2005-02-22 11:37:03 +0000
commit3e459e39fa5554f96455d50b30a503613786f52f (patch)
tree0002ba1d7e989d96910e73fcfb50703d5ed5210f /libavcodec
parentae26a016b438ee88d678a21d346b8782d8b574b8 (diff)
use av_free() instead of free() where it's meant to.
Originally committed as revision 3971 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec')
-rw-r--r--libavcodec/apiexample.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c
index 0c7617d853..7a4a862c71 100644
--- a/libavcodec/apiexample.c
+++ b/libavcodec/apiexample.c
@@ -85,7 +85,7 @@ void audio_encode_example(const char *filename)
free(samples);
avcodec_close(c);
- free(c);
+ av_free(c);
}
/*
@@ -129,7 +129,7 @@ void audio_decode_example(const char *outfilename, const char *filename)
}
outfile = fopen(outfilename, "wb");
if (!outfile) {
- free(c);
+ av_free(c);
exit(1);
}
@@ -162,7 +162,7 @@ void audio_decode_example(const char *outfilename, const char *filename)
free(outbuf);
avcodec_close(c);
- free(c);
+ av_free(c);
}
/*
@@ -272,8 +272,8 @@ void video_encode_example(const char *filename)
free(outbuf);
avcodec_close(c);
- free(c);
- free(picture);
+ av_free(c);
+ av_free(picture);
printf("\n");
}
@@ -404,8 +404,8 @@ void video_decode_example(const char *outfilename, const char *filename)
fclose(f);
avcodec_close(c);
- free(c);
- free(picture);
+ av_free(c);
+ av_free(picture);
printf("\n");
}