diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2021-06-09 00:17:03 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-06-09 00:18:31 +0300 |
commit | 307f8c8e76b37d0287d5dc18e1b1fd047299cadd (patch) | |
tree | 592836a176af137e052f038052f58999cd1b2f64 /source/blender | |
parent | 8bd09b1d77a3b83f7725c6794132bcec5018506f (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.
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/imbuf/intern/indexer.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/indexer.c b/source/blender/imbuf/intern/indexer.c index 46b28086129..58357e52149 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 |