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:49:45 +0200 |
commit | d8e66ec1d7233541fd84205cb10e8e6ff87167de (patch) | |
tree | 7c7a16632674aa69a3a637315178e2194e0da44e /libavcodec/scpr3.c | |
parent | 6ba55e9652746382dddddadb9d91206e22e15939 (diff) | |
download | ffmpeg-d8e66ec1d7233541fd84205cb10e8e6ff87167de.tar.gz |
avcodec/libvorbisenc: Avoid copying data, allow user-supplied buffers
Here the packet size is known before allocating the packet because
the encoder provides said information (and works with internal buffers
itself), so one can use this information to avoid the implicit use of
another intermediate buffer for the packet data; and by switching to
ff_get_encode_buffer() one can also allow user-supplied buffers.
Reviewed-by: James Almer <jamrial@gmail.com>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/scpr3.c')
0 files changed, 0 insertions, 0 deletions