]> git.sesse.net Git - ffmpeg/commit
avfilter/asrc_sine: Fix invalid left shift of negative number
authorAndreas Rheinhardt <andreas.rheinhardt@gmail.com>
Wed, 22 Jan 2020 01:05:10 +0000 (02:05 +0100)
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>
Sun, 28 Mar 2021 16:45:20 +0000 (18:45 +0200)
commit55b46902c1f855d02ea802de1285d68577a38806
treed945701257b5b4a4a7bbec469b94aa3d9507b547
parenta42c47b77feda837a966aa96569ed8a2553b1c36
avfilter/asrc_sine: Fix invalid left shift of negative number

by using a multiplication instead. The multiplication can never overflow
an int because the sin-factor is only an int16_t.

Affected the FATE-tests filter-concat and filter-concat-vfr.

Reviewed-by: Nicolas George <george@nsup.org>
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@gmail.com>
libavfilter/asrc_sine.c