[FFmpeg-devel] [PATCH 02/39] avcodec/libaomenc: Avoid copying data, allow user-supplied buffers

James Zern jzern at google.com
Fri May 21 22:28:19 EEST 2021


On Fri, May 21, 2021 at 2:18 AM Andreas Rheinhardt
<andreas.rheinhardt at outlook.com> wrote:
>
> 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.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
>  libavcodec/libaomenc.c | 6 ++++--
>  1 file changed, 4 insertions(+), 2 deletions(-)
>

lgtm


More information about the ffmpeg-devel mailing list