diff options
author | Burt P <pburt0@gmail.com> | 2016-07-04 14:16:54 -0500 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2016-08-06 00:37:41 +0200 |
commit | 43407bde3e47e0539c1cb19a708ffc3b5a03556a (patch) | |
tree | 4659c6703446efdc19da90eefbda7429b7971967 | |
parent | 7c9ee83d2f30b88a274d19529d5da0427bf21a96 (diff) | |
download | ffmpeg-43407bde3e47e0539c1cb19a708ffc3b5a03556a.tar.gz |
avfilter/af_hdcd: small fix in af_hdcd.c where gain was not being adjusted for "attenuate slowly"
Signed-off-by: Burt P <pburt0@gmail.com>
Taken from ba69a81019a2642969b108c39e3bea7d2f8ffbfa
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
-rw-r--r-- | libavfilter/af_hdcd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c index 16bdcb01ea..92f3c9ea89 100644 --- a/libavfilter/af_hdcd.c +++ b/libavfilter/af_hdcd.c @@ -949,6 +949,7 @@ static int hdcd_envelope(int32_t *samples, int count, int stride, int gain, int int len = FFMIN(count, target_gain - gain); /* attenuate slowly */ for (i = 0; i < len; i++) { + ++gain; APPLY_GAIN(*samples, gain); samples += stride; } |