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

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


On Fri, May 21, 2021 at 2:19 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/libvpxenc.c | 9 ++++++---
>  1 file changed, 6 insertions(+), 3 deletions(-)
>

lgtm


More information about the ffmpeg-devel mailing list