Commit 5ffe9269 authored by mmu_man's avatar mmu_man

use av_free() instead of free() where it's meant to.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@3971 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent ae69b507
......@@ -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");
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment