OSDN Git Service

never freed buffer fix
authorMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Jan 2005 18:12:13 +0000 (18:12 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Wed, 12 Jan 2005 18:12:13 +0000 (18:12 +0000)
based upon a patch by (Kurosu <kurosu inforezo org>)

Originally committed as revision 3829 to svn://svn.ffmpeg.org/ffmpeg/trunk

ffmpeg.c

index df06304..6536794 100644 (file)
--- a/ffmpeg.c
+++ b/ffmpeg.c
@@ -1969,6 +1969,7 @@ static int av_encode(AVFormatContext **output_files,
     
     ret = 0;
  fail1:
+    av_freep(&bit_buffer);
     av_free(file_table);
 
     if (ist_table) {