1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

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 ba69a81019
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
Burt P 2016-07-04 14:16:54 -05:00 committed by Michael Niedermayer
parent 7c9ee83d2f
commit 43407bde3e

View File

@ -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;
}