diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-26 20:47:03 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-27 00:20:53 +0200 |
commit | ad184c8e363018044715cbe9ebc0b576e54a6438 (patch) | |
tree | 149f60128cc0741d5184d51505f1f0849444dbbe /libavcodec/mips/sbrdsp_mips.c | |
parent | 2a623bacc8457c51477f02f06ff9eff16afb615a (diff) | |
download | ffmpeg-ad184c8e363018044715cbe9ebc0b576e54a6438.tar.gz |
avcodec/encode: Zero padding in ff_get_encode_buffer()
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 redundant and
has been removed.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/mips/sbrdsp_mips.c')
0 files changed, 0 insertions, 0 deletions