[FFmpeg-devel] [PATCH] avfilter/af_tremolo: fix envelope phase
Paul B Mahol
onemda at gmail.com
Tue Sep 22 20:31:12 CEST 2015
On 9/22/15, Kyle Swanson <k at ylo.ph> wrote:
> Signed-off-by: Kyle Swanson <k at ylo.ph>
> ---
> libavfilter/af_tremolo.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/libavfilter/af_tremolo.c b/libavfilter/af_tremolo.c
> index 6335401..69eaa34 100644
> --- a/libavfilter/af_tremolo.c
> +++ b/libavfilter/af_tremolo.c
> @@ -138,7 +138,7 @@ static int config_input(AVFilterLink *inlink)
> if (!s->wave_table)
> return AVERROR(ENOMEM);
>
> - ff_generate_wave_table(WAVE_SIN, AV_SAMPLE_FMT_DBL, s->wave_table,
> s->sample_rate / s->freq, 0.0, 1.0, 0.0);
> + ff_generate_wave_table(WAVE_SIN, AV_SAMPLE_FMT_DBL, s->wave_table,
> s->sample_rate / s->freq, 0.0, 1.0, 3.0 * M_PI / 2.0);
> s->wave_table_index = 0;
> return 0;
> }
> --
> 1.8.4
>
Why? This worsen psnr between sox and us.
More information about the ffmpeg-devel
mailing list