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

2021-04-26 Thread James Zern
On Sun, Apr 25, 2021 at 3:39 PM Andreas Rheinhardt 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

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

2021-04-25 Thread Andreas Rheinhardt
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: And