You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-07-11 14:30:22 +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:
committed by
Michael Niedermayer
parent
7c9ee83d2f
commit
43407bde3e
@ -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);
|
int len = FFMIN(count, target_gain - gain);
|
||||||
/* attenuate slowly */
|
/* attenuate slowly */
|
||||||
for (i = 0; i < len; i++) {
|
for (i = 0; i < len; i++) {
|
||||||
|
++gain;
|
||||||
APPLY_GAIN(*samples, gain);
|
APPLY_GAIN(*samples, gain);
|
||||||
samples += stride;
|
samples += stride;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user