[SCM] libav/experimental: use av_free() instead of free() where it's meant to.

siretart at users.alioth.debian.org siretart at users.alioth.debian.org
Sun Jun 30 15:43:08 UTC 2013


The following commit has been merged in the experimental branch:
commit 3e459e39fa5554f96455d50b30a503613786f52f
Author: François Revol <revol at free.fr>
Date:   Tue Feb 22 11:37:03 2005 +0000

    use av_free() instead of free() where it's meant to.
    
    Originally committed as revision 3971 to svn://svn.ffmpeg.org/ffmpeg/trunk

diff --git a/libavcodec/apiexample.c b/libavcodec/apiexample.c
index 0c7617d..7a4a862 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");
 }
 

-- 
Libav/FFmpeg packaging



More information about the pkg-multimedia-commits mailing list