Re: [FFmpeg-devel] [PATCH] fftools/ffmpeg: Improve streamcopy

2019-10-12 Thread Michael Niedermayer
On Fri, Oct 11, 2019 at 06:06:58AM +0200, Andreas Rheinhardt wrote: > do_streamcopy() has a packet that gets zero-initialized first, then gets > initialized via av_init_packet() after which some of its fields are > oerwritten again with the actually desired values (unless it's EOF): The > side data

[FFmpeg-devel] [PATCH] fftools/ffmpeg: Improve streamcopy

2019-10-10 Thread Andreas Rheinhardt
do_streamcopy() has a packet that gets zero-initialized first, then gets initialized via av_init_packet() after which some of its fields are oerwritten again with the actually desired values (unless it's EOF): The side data is copied into the packet with av_copy_packet_side_data() and if the source