diff options
author | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-04-25 01:43:26 +0200 |
---|---|---|
committer | Andreas Rheinhardt <andreas.rheinhardt@outlook.com> | 2021-05-23 14:42:54 +0200 |
commit | c59398970bff5ee6c0305a0228eb562ec5901b08 (patch) | |
tree | f3f8ee6c2548ff132c5bd0e0196a2c168431fa93 /libavcodec/flacdsp_template.c | |
parent | 95c8a859d97e9902388f5acf5c735b16417a2609 (diff) | |
download | ffmpeg-c59398970bff5ee6c0305a0228eb562ec5901b08.tar.gz |
avcodec/libmp3lame: Avoid copying data, allow user-supplied buffer
The libmp3lame encoder already uses an internal buffer, so that the
packet size is already known before allocating the packet; therefore
one can avoid another (implicit) intermediate buffer by switching
to ff_get_encode_buffer(), thereby also supporting user-supplied
buffers.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/flacdsp_template.c')
0 files changed, 0 insertions, 0 deletions