Re: [FFmpeg-devel] [PATCH v2 5/8] avformat/utils: Fix memleaks II

2019-09-09 Thread Andreas Rheinhardt
Andriy Gelman: > Andreas, > > On Mon, 19. Aug 23:56, Andreas Rheinhardt wrote: >> Up until now, avformat_find_stream_info had a potential for memleaks: >> When everything is fine, it read packets and (depending upon whether >> AVFMT_FLAG_NOBUFFER was set) put them in a packet list or unreferenced

Re: [FFmpeg-devel] [PATCH v2 5/8] avformat/utils: Fix memleaks II

2019-08-24 Thread Andriy Gelman
Andreas, On Mon, 19. Aug 23:56, Andreas Rheinhardt wrote: > Up until now, avformat_find_stream_info had a potential for memleaks: > When everything is fine, it read packets and (depending upon whether > AVFMT_FLAG_NOBUFFER was set) put them in a packet list or unreferenced > them when they were no

Re: [FFmpeg-devel] [PATCH v2 5/8] avformat/utils: Fix memleaks II

2019-08-19 Thread Andreas Rheinhardt
myp...@gmail.com: > On Tue, Aug 20, 2019 at 6:11 AM Andreas Rheinhardt > wrote: >> >> Up until now, avformat_find_stream_info had a potential for memleaks: >> When everything is fine, it read packets and (depending upon whether >> AVFMT_FLAG_NOBUFFER was set) put them in a packet list or unreferen

Re: [FFmpeg-devel] [PATCH v2 5/8] avformat/utils: Fix memleaks II

2019-08-19 Thread myp...@gmail.com
On Tue, Aug 20, 2019 at 6:11 AM Andreas Rheinhardt wrote: > > Up until now, avformat_find_stream_info had a potential for memleaks: > When everything is fine, it read packets and (depending upon whether > AVFMT_FLAG_NOBUFFER was set) put them in a packet list or unreferenced > them when they were

[FFmpeg-devel] [PATCH v2 5/8] avformat/utils: Fix memleaks II

2019-08-19 Thread Andreas Rheinhardt
Up until now, avformat_find_stream_info had a potential for memleaks: When everything is fine, it read packets and (depending upon whether AVFMT_FLAG_NOBUFFER was set) put them in a packet list or unreferenced them when they were no longer needed. But upon failure, said packets would leak if they w