Re: [FFmpeg-devel] [PATCH 01/30] avcodec/flashsvenc: Avoid allocation of buffer, fix memleak

2020-09-17 Thread Andreas Rheinhardt
Andreas Rheinhardt: > Up until now, the flashsv encoder tried to allocate two buffers in its > init function; if only one of these allocations succeeds, the other > buffer leaks. Fix this by making one of these buffers part of the > context (its size is a compile-time constant). > > Signed-off-by:

[FFmpeg-devel] [PATCH 01/30] avcodec/flashsvenc: Avoid allocation of buffer, fix memleak

2020-09-15 Thread Andreas Rheinhardt
Up until now, the flashsv encoder tried to allocate two buffers in its init function; if only one of these allocations succeeds, the other buffer leaks. Fix this by making one of these buffers part of the context (its size is a compile-time constant). Signed-off-by: Andreas Rheinhardt --- libavc