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" > To: "FFmpeg development discussions and patches" > Subject: Re: [FFmpeg-devel] [PATCH] libswresample: check input to > swr_convert_frame for NULL > > Is the author value as inten

[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). --- libswresample/swresample_fra