Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMoritz Barsnick <barsnick@gmx.net>2016-12-30 20:08:13 +0300
committerMichael Niedermayer <michael@niedermayer.cc>2016-12-31 19:20:06 +0300
commit6c442e1584599471d1d43df2880feb9bda215163 (patch)
tree798a1f1f635199d7bec7738dd42a37441533174e /libavcodec/libmp3lame.c
parent1bfb4587a2e5b25ed15f742149e555efc8f305ae (diff)
lavc/libmp3lame: add support for cutoff
Pass the cutoff option from lavc's avcodec_options[] to libmp3lame's lowpass option, without allowing to adjust its default behavior. Signed-off-by: Moritz Barsnick <barsnick@gmx.net> Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/libmp3lame.c')
-rw-r--r--libavcodec/libmp3lame.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libavcodec/libmp3lame.c b/libavcodec/libmp3lame.c
index e55aa8537a..5e26743f29 100644
--- a/libavcodec/libmp3lame.c
+++ b/libavcodec/libmp3lame.c
@@ -125,6 +125,10 @@ static av_cold int mp3lame_encode_init(AVCodecContext *avctx)
}
}
+ /* lowpass cutoff frequency */
+ if (avctx->cutoff)
+ lame_set_lowpassfreq(s->gfp, avctx->cutoff);
+
/* do not get a Xing VBR header frame from LAME */
lame_set_bWriteVbrTag(s->gfp,0);