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.
This commit is contained in:
Sebastian Parborg 2021-06-08 23:17:03 +02:00 committed by Jeroen Bakker
parent 02a6be5443
commit cea80f1add
Notes: blender-bot 2023-02-14 19:45:25 +01:00
Referenced by issue #88449, Blender LTS: Maintenance Task 2.93
1 changed files with 1 additions and 0 deletions

View File

@ -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