Commit: cea80f1add58ac55dd70af4fd95c6b89f7d4376e
Author: Sebastian Parborg
Date:   Tue Jun 8 23:17:03 2021 +0200
Branches: blender-v2.93-release
https://developer.blender.org/rBcea80f1add58ac55dd70af4fd95c6b89f7d4376e

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.

===================================================================

M       source/blender/imbuf/intern/indexer.c

===================================================================

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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to