BabitMF / bmf

Cross-platform, customizable multimedia/video processing framework. With strong GPU acceleration, heterogeneous design, multi-language support, easy to use, multi-framework compatible and high performance, the framework is ideal for transcoding, AI inference, algorithm integration, live video streaming, and more.
https://babitmf.github.io/
Apache License 2.0
733 stars 60 forks source link

Use mutable lambda #49

Closed tongyuantongyu closed 10 months ago

tongyuantongyu commented 10 months ago

py::list::append is non-const, but non-mutable lambda's call operator is const, therefore cannot call the non-const method on copy-captured object.

Note: py::list itself is a referencing-count wrapper of the underlying Python object so copy-capture is correct here.