Commit 0d8caeb4 authored by Burt P's avatar Burt P Committed by Michael Niedermayer

af_hdcd: integrate() renamed hdcd_integrate() to be consistent with the other function names

Signed-off-by: 's avatarBurt P <pburt0@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 2408f926
...@@ -883,7 +883,7 @@ static void hdcd_reset(hdcd_state_t *state, unsigned rate) ...@@ -883,7 +883,7 @@ static void hdcd_reset(hdcd_state_t *state, unsigned rate)
state->cb7 = 0; state->cb7 = 0;
} }
static int integrate(hdcd_state_t *state, int *flag, const int32_t *samples, int count, int stride) static int hdcd_integrate(hdcd_state_t *state, int *flag, const int32_t *samples, int count, int stride)
{ {
uint32_t bits = 0; uint32_t bits = 0;
int result = FFMIN(state->readahead, count); int result = FFMIN(state->readahead, count);
...@@ -941,7 +941,7 @@ static int hdcd_scan(hdcd_state_t *state, const int32_t *samples, int max, int s ...@@ -941,7 +941,7 @@ static int hdcd_scan(hdcd_state_t *state, const int32_t *samples, int max, int s
result = 0; result = 0;
while (result < max) { while (result < max) {
int flag; int flag;
int consumed = integrate(state, &flag, samples, max - result, stride); int consumed = hdcd_integrate(state, &flag, samples, max - result, stride);
result += consumed; result += consumed;
if (flag > 0) { if (flag > 0) {
state->sustain = state->sustain_reset; state->sustain = state->sustain_reset;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment