[FFmpeg-devel] [PATCH 30/34] avcodec/libvpxenc: Avoid copying packet data

James Zern jzern at google.com
Mon Apr 26 20:42:19 EEST 2021


On Sun, Apr 25, 2021 at 3:39 PM 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 pass this information to ff_alloc_packet2() to
> avoid the implicit use of another intermediate buffer for the packet data.
>
> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt at outlook.com>
> ---
> Will get rid of this unnecessary level of indirection in storeframe()
> after the bump.
>
>  libavcodec/libvpxenc.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>

lgtm.


More information about the ffmpeg-devel mailing list