avfilter/af_afir: fix some misc low priority issues
Remove double ;; and dead store.
This commit is contained in:
parent
8c75e5fdd3
commit
a350e68c83
@ -136,7 +136,7 @@ static int fir_channels(AVFilterContext *ctx, void *arg, int jobnr, int nb_jobs)
|
|||||||
static int fir_frame(AudioFIRContext *s, AVFrame *in, AVFilterLink *outlink)
|
static int fir_frame(AudioFIRContext *s, AVFrame *in, AVFilterLink *outlink)
|
||||||
{
|
{
|
||||||
AVFilterContext *ctx = outlink->src;
|
AVFilterContext *ctx = outlink->src;
|
||||||
AVFrame *out = NULL;
|
AVFrame *out;
|
||||||
|
|
||||||
out = ff_get_audio_buffer(outlink, in->nb_samples);
|
out = ff_get_audio_buffer(outlink, in->nb_samples);
|
||||||
if (!out) {
|
if (!out) {
|
||||||
|
@ -331,7 +331,7 @@ static int fn(fir_quantum)(AVFilterContext *ctx, AVFrame *out, int ch, int offse
|
|||||||
const int part_size = seg->part_size;
|
const int part_size = seg->part_size;
|
||||||
int j;
|
int j;
|
||||||
|
|
||||||
seg->part_index[ch] = seg->part_index[ch] % nb_partitions;;
|
seg->part_index[ch] = seg->part_index[ch] % nb_partitions;
|
||||||
if (min_part_size >= 8) {
|
if (min_part_size >= 8) {
|
||||||
#if DEPTH == 32
|
#if DEPTH == 32
|
||||||
s->fdsp->vector_fmul_scalar(src + input_offset, in, dry_gain, FFALIGN(nb_samples, 4));
|
s->fdsp->vector_fmul_scalar(src + input_offset, in, dry_gain, FFALIGN(nb_samples, 4));
|
||||||
@ -359,7 +359,7 @@ static int fn(fir_quantum)(AVFilterContext *ctx, AVFrame *out, int ch, int offse
|
|||||||
memset(sumin, 0, sizeof(*sumin) * seg->fft_length);
|
memset(sumin, 0, sizeof(*sumin) * seg->fft_length);
|
||||||
blockin = (ftype *)seg->blockin->extended_data[ch] + seg->part_index[ch] * seg->block_size;
|
blockin = (ftype *)seg->blockin->extended_data[ch] + seg->part_index[ch] * seg->block_size;
|
||||||
blockout = (ftype *)seg->blockout->extended_data[ch] + seg->part_index[ch] * seg->block_size;
|
blockout = (ftype *)seg->blockout->extended_data[ch] + seg->part_index[ch] * seg->block_size;
|
||||||
memset(blockin + part_size, 0, sizeof(*blockin) * (seg->fft_length - part_size));
|
memset(blockin + part_size, 0, sizeof(*blockin) * (seg->block_size - part_size));
|
||||||
memcpy(blockin, src, sizeof(*src) * part_size);
|
memcpy(blockin, src, sizeof(*src) * part_size);
|
||||||
|
|
||||||
seg->tx_fn(seg->tx[ch], blockout, blockin, sizeof(ftype));
|
seg->tx_fn(seg->tx[ch], blockout, blockin, sizeof(ftype));
|
||||||
@ -398,8 +398,6 @@ static int fn(fir_quantum)(AVFilterContext *ctx, AVFrame *out, int ch, int offse
|
|||||||
fn(fir_fadd)(s, buf, sumout, part_size);
|
fn(fir_fadd)(s, buf, sumout, part_size);
|
||||||
|
|
||||||
memcpy(dst, buf, part_size * sizeof(*dst));
|
memcpy(dst, buf, part_size * sizeof(*dst));
|
||||||
|
|
||||||
buf = (ftype *)seg->buffer->extended_data[ch];
|
|
||||||
memcpy(buf, sumout + part_size, part_size * sizeof(*buf));
|
memcpy(buf, sumout + part_size, part_size * sizeof(*buf));
|
||||||
|
|
||||||
seg->part_index[ch] = (seg->part_index[ch] + 1) % nb_partitions;
|
seg->part_index[ch] = (seg->part_index[ch] + 1) % nb_partitions;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user