Re: [FFmpeg-devel] [PATCH] avformat/utils: Move the reference to the packet list

2019-09-25 Thread James Almer
On 9/25/2019 9:05 PM, Andreas Rheinhardt wrote: > Up until now, ff_packet_list_put had a flaw: When it moved a packet to > the list (meaning, when it ought to move the reference to the packet > list instead of creating a new one via av_packet_ref), it did not reset > the original packet, confusing

[FFmpeg-devel] [PATCH] avformat/utils: Move the reference to the packet list

2019-09-25 Thread Andreas Rheinhardt
Up until now, ff_packet_list_put had a flaw: When it moved a packet to the list (meaning, when it ought to move the reference to the packet list instead of creating a new one via av_packet_ref), it did not reset the original packet, confusing the ownership of the data in the packet. This has been