[FFmpeg-devel] PATCH] h2645: Allocate a single buffer per packet. Drastically reduces memory usage on pathological streams.

Derek Buitenhuis derek.buitenhuis at gmail.com
Sat Nov 4 19:52:58 EET 2017


On 11/3/2017 6:23 PM, Kieran Kunhya wrote:
> This patch fixes very high memory usage on pathological streams.

[...]

> -    H2645Packet pkt = { 0 };
> +    H2645Packet pkt;
> +    memset(&pkt, 0, sizeof(pkt));

Stray unrelated change.

Rest seems reasonable from a cursory glance. I assume it's
been run with ASAN or whatever + FATE, and valgrind.

- Derek


More information about the ffmpeg-devel mailing list