Re: [FFmpeg-devel] [PATCH 3/4] avformat/utils: Remove redundant save+restore

2020-01-08 Thread Michael Niedermayer
On Tue, Oct 08, 2019 at 07:41:15AM +0200, Andreas Rheinhardt wrote: > If the size of the input packet is zero, av_grow_packet() used to call > av_new_packet() which would initialize the packet and (in particular) > reset the pos field. This behaviour (which was never documented and > arguably alway

Re: [FFmpeg-devel] [PATCH 3/4] avformat/utils: Remove redundant save+restore

2020-01-07 Thread Andreas Rheinhardt
On Tue, Oct 8, 2019 at 7:42 AM Andreas Rheinhardt < andreas.rheinha...@gmail.com> wrote: > If the size of the input packet is zero, av_grow_packet() used to call > av_new_packet() which would initialize the packet and (in particular) > reset the pos field. This behaviour (which was never documente

[FFmpeg-devel] [PATCH 3/4] avformat/utils: Remove redundant save+restore

2019-10-07 Thread Andreas Rheinhardt
If the size of the input packet is zero, av_grow_packet() used to call av_new_packet() which would initialize the packet and (in particular) reset the pos field. This behaviour (which was never documented and arguably always contradicted the documented behaviour) was changed in 2fe04630. This means