[gegl/video-rejuvenation] ff-load: fix invalid memory access
- From: Øyvind Kolås <ok src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gegl/video-rejuvenation] ff-load: fix invalid memory access
- Date: Wed, 28 Oct 2015 16:55:39 +0000 (UTC)
commit 885c1c19e2327b19bd075b9c39ee975890e010d1
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]