[gegl/video-rejuvenation] ff-save: free audio frames



commit 0bc0641ee635625d47d2a560ad52150903a96459
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Nov 18 17:39:02 2015 +0100

    ff-save: free audio frames

 operations/external/ff-save.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/operations/external/ff-save.c b/operations/external/ff-save.c
index f59fbc1..21e6cf4 100644
--- a/operations/external/ff-save.c
+++ b/operations/external/ff-save.c
@@ -64,7 +64,7 @@ property_audio (audio, _("audio"), 0)
 #define MAX_AUDIO_SAMPLES   2048
 
 typedef struct AudioFrame {
-  //int64_t          pts;
+  //int64_t        pts;
   float            data[MAX_AUDIO_CHANNELS][MAX_AUDIO_SAMPLES];
   int              channels;
   int              sample_rate;
@@ -161,6 +161,7 @@ static void get_sample_data (Priv *p, long sample_no, float *left, float *right)
             if (sample_no > af->pos + af->len)
             {
               p->audio_track = g_list_remove (p->audio_track, af);
+              g_free (af);
               goto again;
             }
           }


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]