[FFmpeg-devel] [PATCH] avfilter/af_tremolo: fix envelope phase

Kyle Swanson k at ylo.ph
Tue Sep 22 19:58:45 CEST 2015


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



More information about the ffmpeg-devel mailing list