Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Parborg <darkdefende@gmail.com>2021-06-09 00:17:03 +0300
committerJeroen Bakker <jeroen@blender.org>2021-06-30 10:38:01 +0300
commitcea80f1add58ac55dd70af4fd95c6b89f7d4376e (patch)
treec6e7ebf617146a96af07ea59f2aaa17b41e01e5c
parent02a6be544324d6d42e2bbf2c8dca89169961ce2d (diff)
Fix: Prevent small memory leak in VSE indexer
We need to unref the packet to tell ffmpeg it is ok to free it after use.
-rw-r--r--source/blender/imbuf/intern/indexer.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/indexer.c b/source/blender/imbuf/intern/indexer.c
index 930c0092a9b..7cbdf7fadd1 100644
--- a/source/blender/imbuf/intern/indexer.c
+++ b/source/blender/imbuf/intern/indexer.c
@@ -1026,6 +1026,7 @@ static int index_rebuild_ffmpeg(FFmpegIndexBuilderContext *context,
index_rebuild_ffmpeg_proc_decoded_frame(context, next_packet, in_frame);
}
}
+ av_packet_unref(next_packet);
}
/* process pictures still stuck in decoder engine after EOF