Re: [FFmpeg-devel] [PATCH] libswresample: check input to swr_convert_frame for NULL

2017-07-08 Thread Michael Niedermayer
On Sat, Jul 08, 2017 at 03:56:53PM +0200, hexpointer wrote: > > Sent: Saturday, July 08, 2017 at 2:19 AM > > From: "Michael Niedermayer" <mich...@niedermayer.cc> > > To: "FFmpeg development discussions and patches" <ffmpeg-devel@ffmpeg.org> >

Re: [FFmpeg-devel] [PATCH] libswresample: check input to swr_convert_frame for NULL

2017-07-08 Thread hexpointer
> Sent: Saturday, July 08, 2017 at 2:19 AM > From: "Michael Niedermayer" <mich...@niedermayer.cc> > To: "FFmpeg development discussions and patches" <ffmpeg-devel@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] libswresample: check input to > swr

Re: [FFmpeg-devel] [PATCH] libswresample: check input to swr_convert_frame for NULL

2017-07-07 Thread Michael Niedermayer
On Fri, Jul 07, 2017 at 10:54:47AM +0100, hexpointer wrote: > When 'out' is an AVFrame that does not have buffers preallocated, > swr_convert_frame tries to allocate buffers of the right size. However > in calculating this size it failed to check for whether 'in' is NULL > (requesting that swr's

[FFmpeg-devel] [PATCH] libswresample: check input to swr_convert_frame for NULL

2017-07-07 Thread hexpointer
When 'out' is an AVFrame that does not have buffers preallocated, swr_convert_frame tries to allocate buffers of the right size. However in calculating this size it failed to check for whether 'in' is NULL (requesting that swr's internal buffers are to be flushed). ---