VSE: Cleanup: Remove storage of last FFMPEG frame read as ImBuf in sequences. #114395

Merged
Bastien Montagne merged 1 commits from mont29/blender:tmp-vse-anim-remove-cur-ibuf into main 2023-11-03 11:18:30 +01:00

1 Commits

Author SHA1 Message Date
Bastien Montagne b1d2198aad FFMPEG: Cleanup: Remove storage of last FFMPEG frame read as `ImBuf` in anim data.
The `anim` data (e.g. of a VSE sequence) would store the last frame read from
FFMPEG as an image buffer, increasing its refcounting and preventing it
to be freed until the whole `anim` data itself gets freed.

In current code, there is no reason to keep a reference to this image
buffer in the `anim` data, so removing it. This may also give a few
percent improvement on the memory usage of the VSE in some cases.

Found while investigating #114342.
2023-11-03 11:05:53 +01:00