Re: [FFmpeg-devel] [PATCH] avformat/ttaenc: Don't unnecessarily copy packets

2019-12-03 Thread Andreas Rheinhardt
On Tue, Dec 3, 2019 at 1:20 PM James Almer wrote: > On 12/3/2019 8:34 AM, Andreas Rheinhardt wrote: > > When the tta muxer writes the actual packet data at the end of the > > muxing process, it repeatedly copies the packets contained in the > > linked list of stored packets to an AVPacket located

Re: [FFmpeg-devel] [PATCH] avformat/ttaenc: Don't unnecessarily copy packets

2019-12-03 Thread James Almer
On 12/3/2019 8:34 AM, Andreas Rheinhardt wrote: > When the tta muxer writes the actual packet data at the end of the > muxing process, it repeatedly copies the packets contained in the > linked list of stored packets to an AVPacket located on the stack via > ff_packet_list_get(), writes the data an

[FFmpeg-devel] [PATCH] avformat/ttaenc: Don't unnecessarily copy packets

2019-12-03 Thread Andreas Rheinhardt
When the tta muxer writes the actual packet data at the end of the muxing process, it repeatedly copies the packets contained in the linked list of stored packets to an AVPacket located on the stack via ff_packet_list_get(), writes the data and unrefs the packet. But when one is willing to travers