radek-k / FFMediaToolkit

FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
353 stars 56 forks source link

Add MediaPacket pooling in the packet queue. #4

Closed radek-k closed 5 years ago

radek-k commented 5 years ago

Currently, a new MediaPacket class is allocated on each packet reading. To avoid unnecessary memory allocations, there should be an option to reuse the MediaPacket classes.