[FFmpeg-devel] [PATCH] swresample/swresample: check for invalid sample rates

Paul B Mahol onemda at gmail.com
Fri May 24 23:28:34 EEST 2019


On 5/24/19, Derek Buitenhuis <derek.buitenhuis at gmail.com> wrote:
> On 24/05/2019 17:05, Paul B Mahol wrote:
>> Signed-off-by: Paul B Mahol <onemda at gmail.com>
>> ---
>>  libswresample/swresample.c | 8 ++++++++
>>  1 file changed, 8 insertions(+)
>
> Seems reasonable. What happens if these aren't in place?

It may divide by zero and crash with floating-point exception.


More information about the ffmpeg-devel mailing list