Re: [FFmpeg-devel] [PATCH] avcodec/encode: Zero padding in ff_get_encode_buffer()

2021-04-26 Thread James Almer
On 4/26/2021 3:52 PM, Andreas Rheinhardt wrote: The documentation of the get_encode_buffer() callback does not require to zero the padding; therefore we do it in ff_get_encode_buffer(). This also constitutes an implicit check for whether the buffer is actually allocated with padding. The memset

[FFmpeg-devel] [PATCH] avcodec/encode: Zero padding in ff_get_encode_buffer()

2021-04-26 Thread Andreas Rheinhardt
The documentation of the get_encode_buffer() callback does not require to zero the padding; therefore we do it in ff_get_encode_buffer(). This also constitutes an implicit check for whether the buffer is actually allocated with padding. The memset in avcodec_default_get_encode_buffer() is now