mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-02-09 14:14:39 +02:00
avfilter/af_headphone: Free inpads' names generically
Reviewed-by: Nicolas George <george@nsup.org> Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
0e936381ff
commit
ad5d056dc3
@ -670,11 +670,9 @@ static av_cold int init(AVFilterContext *ctx)
|
|||||||
};
|
};
|
||||||
if (!name)
|
if (!name)
|
||||||
return AVERROR(ENOMEM);
|
return AVERROR(ENOMEM);
|
||||||
if ((ret = ff_append_inpad(ctx, &pad)) < 0) {
|
if ((ret = ff_append_inpad_free_name(ctx, &pad)) < 0)
|
||||||
av_freep(&pad.name);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (s->type == TIME_DOMAIN) {
|
if (s->type == TIME_DOMAIN) {
|
||||||
AVFloatDSPContext *fdsp = avpriv_float_dsp_alloc(0);
|
AVFloatDSPContext *fdsp = avpriv_float_dsp_alloc(0);
|
||||||
@ -729,9 +727,6 @@ static av_cold void uninit(AVFilterContext *ctx)
|
|||||||
av_freep(&s->temp_afft[1]);
|
av_freep(&s->temp_afft[1]);
|
||||||
av_freep(&s->data_hrtf[0]);
|
av_freep(&s->data_hrtf[0]);
|
||||||
av_freep(&s->data_hrtf[1]);
|
av_freep(&s->data_hrtf[1]);
|
||||||
|
|
||||||
for (unsigned i = 1; i < ctx->nb_inputs; i++)
|
|
||||||
av_freep(&ctx->input_pads[i].name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#define OFFSET(x) offsetof(HeadphoneContext, x)
|
#define OFFSET(x) offsetof(HeadphoneContext, x)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user