[FFmpeg-cvslog] avfilter/af_hdcd: small fix in af_hdcd.c where gain was not being adjusted for " attenuate slowly"

Burt P git at videolan.org
Sat Aug 6 02:04:13 EEST 2016


ffmpeg | branch: release/3.1 | Burt P <pburt0 at gmail.com> | Mon Jul  4 14:16:54 2016 -0500| [43407bde3e47e0539c1cb19a708ffc3b5a03556a] | committer: Michael Niedermayer

avfilter/af_hdcd: small fix in af_hdcd.c where gain was not being adjusted for "attenuate slowly"

Signed-off-by: Burt P <pburt0 at gmail.com>
Taken from ba69a81019a2642969b108c39e3bea7d2f8ffbfa
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=43407bde3e47e0539c1cb19a708ffc3b5a03556a
---

 libavfilter/af_hdcd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libavfilter/af_hdcd.c b/libavfilter/af_hdcd.c
index 16bdcb0..92f3c9e 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;
         }



More information about the ffmpeg-cvslog mailing list