Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -79,7 +79,7 @@ typedef struct HeadphoneContext { · 78 unmodified lines | ||
| 79 | 79 | struct hrir_inputs { |
| 80 | 80 | int ir_len; |
| 81 | 81 | int eof; |
| 82 | − } *hrir_in; | |
| 82 | + } hrir_in[64]; | |
| 83 | 83 | uint64_t mapping[64]; |
| 84 | 84 | } HeadphoneContext; |
| 85 | 85 | |
| @@ -654,10 +654,6 @@ static av_cold int init(AVFilterContext *ctx) · 568 unmodified lines | ||
| 654 | 654 | |
| 655 | 655 | parse_map(ctx); |
| 656 | 656 | |
| 657 | − s->hrir_in = av_calloc(s->nb_hrir_inputs, sizeof(*s->hrir_in)); | |
| 658 | − if (!s->hrir_in) | |
| 659 | − return AVERROR(ENOMEM); | |
| 660 | − | |
| 661 | 657 | for (i = 0; i < s->nb_hrir_inputs; i++) { |
| 662 | 658 | char *name = av_asprintf("hrir%d", i); |
| 663 | 659 | AVFilterPad pad = { |
| @@ -721,7 +717,6 @@ static av_cold void uninit(AVFilterContext *ctx) · 57 unmodified lines | ||
| 721 | 717 | av_freep(&s->data_hrtf[1]); |
| 722 | 718 | av_freep(&s->fdsp); |
| 723 | 719 | |
| 724 | − av_freep(&s->hrir_in); | |
| 725 | 720 | for (unsigned i = 1; i < ctx->nb_inputs; i++) |
| 726 | 721 | av_freep(&ctx->input_pads[i].name); |
| 727 | 722 | } |