[gegl/video-rejuvenation: 31/83] ff-load: fix invalid memory access



commit aea97f53befc282c45f536ad0379b1525e3b88fb
Author: Øyvind Kolås <pippin gimp org>
Date:   Wed Oct 28 17:55:15 2015 +0100

    ff-load: fix invalid memory access

 operations/external/ff-load.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/operations/external/ff-load.c b/operations/external/ff-load.c
index 2b39bc6..91b796c 100644
--- a/operations/external/ff-load.c
+++ b/operations/external/ff-load.c
@@ -83,7 +83,7 @@ typedef struct
 } Priv;
 
 #define MAX_AUDIO_CHANNELS  8
-#define MAX_AUDIO_SAMPLES   8192
+#define MAX_AUDIO_SAMPLES   8192 /* XXX: not enough for some videos */
 
 typedef struct AudioFrame {
   int64_t          pts;
@@ -158,6 +158,7 @@ ff_cleanup (GeglProperties *o)
           g_free (p->audio_track->data);
           p->audio_track = g_list_remove (p->audio_track, p->audio_track->data);
        }
+      p->audio_cursor = NULL;
       if (p->codec_name)
         g_free (p->codec_name);
       if (p->loadedfilename)


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