Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: remove one memcpy when queueing packets

2022-08-25 Thread James Almer
On 8/25/2022 1:29 PM, Andreas Rheinhardt wrote: James Almer: Don't use an intermediary buffer. Achieve this by replacing FrameListData with a PacketList, and by allocating and populating every packet's payload before inserting them into the list. Signed-off-by: James Almer --- libavcodec/lib

Re: [FFmpeg-devel] [PATCH] avcodec/libaomenc: remove one memcpy when queueing packets

2022-08-25 Thread Andreas Rheinhardt
James Almer: > Don't use an intermediary buffer. Achieve this by replacing FrameListData with > a PacketList, and by allocating and populating every packet's payload before > inserting them into the list. > > Signed-off-by: James Almer > --- > libavcodec/libaomenc.c | 195 +++

[FFmpeg-devel] [PATCH] avcodec/libaomenc: remove one memcpy when queueing packets

2022-08-24 Thread James Almer
Don't use an intermediary buffer. Achieve this by replacing FrameListData with a PacketList, and by allocating and populating every packet's payload before inserting them into the list. Signed-off-by: James Almer --- libavcodec/libaomenc.c | 195 +++-- 1 file